commit | cf7b2ae4d70432fa94ebba3fbaab825481ae7189 | [log] [tgz] |
---|---|---|
author | Andreas Schwab <schwab@suse.de> | Mon Dec 21 23:52:00 2020 +0100 |
committer | Palmer Dabbelt <palmerdabbelt@google.com> | Thu Jan 07 18:01:34 2021 -0800 |
tree | d1a0f56d908ed2facbb45e6c70b2a95cd04e5781 | |
parent | e71ba9452f0b5b2e8dc8aa5445198cd9214a6a62 [diff] |
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: stable@vger.kernel.org Signed-off-by: Andreas Schwab <schwab@suse.de> Reviewed-by: Tycho Andersen <tycho@tycho.pizza> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>