s390/compat,signal: fix return value of copy_siginfo_(to|from)_user32()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 14 Oct 2013 10:09:37 +0000 (12:09 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 15 Oct 2013 11:47:59 +0000 (13:47 +0200)
The return value of copy_siginfo_(to|from)_user32() gets passed to
user space, however we do not convert a positive return value from
copy_(to|from)_user to -EFAULT.
Therefore these functions (and the calling system calls) my incorrectly
return a positive number (bytes not copied) instead of -EFAULT.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

No differences found