]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/compat,signal: change return values to -EFAULT
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 14 Oct 2013 11:34:28 +0000 (13:34 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 17 Oct 2013 07:26:15 +0000 (09:26 +0200)
commita6318629cdc57e05f8373d0199dfd4ca7c762221
tree20d6df5a09b6530b56d93d9bd4f8e5f7db8cdef6
parent4a14bcfdb48b5f63e55125a7257af1a4878dfb2b
s390/compat,signal: change return values to -EFAULT

Instead of returnin the number of bytes not copied and/or -EFAULT let the
signal handler helper functions always return -EFAULT if a user space
access failed.
This doesn't fix a bug in the current code, but makes is harder to get it
wrong in the future.
Also "smatch" won't complain anymore about the fact that the number of
remaining bytes gets returned instead of -EFAULT.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/compat_signal.c
arch/s390/kernel/signal.c