]> git.baikalelectronics.ru Git - kernel.git/commit
s390/ptrace: return -ENOSYS when invalid syscall is supplied
authorSven Schnelle <svens@linux.ibm.com>
Fri, 6 Mar 2020 12:18:31 +0000 (13:18 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 16 Jun 2020 11:44:04 +0000 (13:44 +0200)
commitbefa40df8bf002946f87fd4f8a396578bf1d23da
tree11424fe82870b0a810fe10a343bef880c06aa508
parent90bc7419377c8e5e51ab1a507e0102294ae7acc8
s390/ptrace: return -ENOSYS when invalid syscall is supplied

The current code returns the syscall number which an invalid
syscall number is supplied and tracing is enabled. This makes
the strace testsuite fail.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/ptrace.c