]> Git Repo - linux.git/commit
riscv: return -ENOSYS for syscall -1
authorAndreas Schwab <[email protected]>
Mon, 21 Dec 2020 22:52:00 +0000 (23:52 +0100)
committerPalmer Dabbelt <[email protected]>
Fri, 8 Jan 2021 02:01:34 +0000 (18:01 -0800)
commitcf7b2ae4d70432fa94ebba3fbaab825481ae7189
treed1a0f56d908ed2facbb45e6c70b2a95cd04e5781
parente71ba9452f0b5b2e8dc8aa5445198cd9214a6a62
riscv: return -ENOSYS for syscall -1

Properly return -ENOSYS for syscall -1 instead of leaving the return value
uninitialized.  This fixes the strace teststuite.

Fixes: 5340627e3fe0 ("riscv: add support for SECCOMP and SECCOMP_FILTER")
Cc: [email protected]
Signed-off-by: Andreas Schwab <[email protected]>
Reviewed-by: Tycho Andersen <[email protected]>
Signed-off-by: Palmer Dabbelt <[email protected]>
arch/riscv/kernel/entry.S
This page took 0.051116 seconds and 4 git commands to generate.