s390/seccomp: fix error return for filtered system calls
authorJan Willeke <willeke@de.ibm.com>
Tue, 22 Jul 2014 14:50:57 +0000 (16:50 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 28 Jul 2014 08:02:31 +0000 (10:02 +0200)
commitdc295880c6752076f8b94ba3885d0bfff09e3e82
tree193959044c6458cb104cdf3f14bd00920bacdb97
parentc60d1ae4efcb5790f7d085369baf66c167a6484f
s390/seccomp: fix error return for filtered system calls

The syscall_set_return_value function of s390 negates the error argument
before storing the value to the return register gpr2. This is incorrect,
the seccomp code already passes the negative error value.
Store the unmodified error value to gpr2.

Signed-off-by: Jan Willeke <willeke@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/syscall.h