Skip to content

Commit f5098e3

Browse files
committed
selftests/seccomp: powerpc: Fix typo in macro variable name
A typo sneaked into the powerpc selftest. Fix the name so it builds again. Fixes: 4613832 ("selftests/seccomp: powerpc: Fix seccomp return value testing") Acked-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/lkml/87y2ix2895.fsf@mpe.ellerman.id.au Signed-off-by: Kees Cook <keescook@chromium.org>
1 parent fb14528 commit f5098e3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/testing/selftests/seccomp/seccomp_bpf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1758,10 +1758,10 @@ TEST_F(TRACE_poke, getpid_runs_normally)
17581758
* and the code is stored as a positive value. \
17591759
*/ \
17601760
if (_result < 0) { \
1761-
SYSCALL_RET(_regs) = -result; \
1761+
SYSCALL_RET(_regs) = -_result; \
17621762
(_regs).ccr |= 0x10000000; \
17631763
} else { \
1764-
SYSCALL_RET(_regs) = result; \
1764+
SYSCALL_RET(_regs) = _result; \
17651765
(_regs).ccr &= ~0x10000000; \
17661766
} \
17671767
} while (0)

0 commit comments

Comments
 (0)