]> 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)
commitbe6ad4d9f3b87b8a449fe8ae2dbb1e28b19bc485
tree11424fe82870b0a810fe10a343bef880c06aa508
parenta2307e1583894e32ff9f0a62a85cc9c6818dced0
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