projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb14528
)
selftests/seccomp: powerpc: Fix typo in macro variable name
author
Kees Cook
<keescook@chromium.org>
Tue, 17 Nov 2020 19:33:02 +0000
(11:33 -0800)
committer
Kees Cook
<keescook@chromium.org>
Fri, 20 Nov 2020 19:02:28 +0000
(11:02 -0800)
A typo sneaked into the powerpc selftest. Fix the name so it builds again.
Fixes:
46138329faea
("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>
tools/testing/selftests/seccomp/seccomp_bpf.c
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/seccomp/seccomp_bpf.c
b/tools/testing/selftests/seccomp/seccomp_bpf.c
index
4a18043
..
7f7ecfc
100644
(file)
--- a/
tools/testing/selftests/seccomp/seccomp_bpf.c
+++ b/
tools/testing/selftests/seccomp/seccomp_bpf.c
@@
-1758,10
+1758,10
@@
TEST_F(TRACE_poke, getpid_runs_normally)
* and the code is stored as a positive value. \
*/ \
if (_result < 0) { \
- SYSCALL_RET(_regs) = -
result;
\
+ SYSCALL_RET(_regs) = -
_result;
\
(_regs).ccr |= 0x10000000; \
} else { \
- SYSCALL_RET(_regs) =
result;
\
+ SYSCALL_RET(_regs) =
_result;
\
(_regs).ccr &= ~0x10000000; \
} \
} while (0)