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)
commitcd29fa798001075a554b978df3a64e6656c25794
tree11424fe82870b0a810fe10a343bef880c06aa508
parent664f5f8de825648d1d31f6f5652e3cd117c77b50
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