s390/compat: correct check for EFAULT in rt-signal frame creation
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 Dec 2013 15:18:07 +0000 (16:18 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 16 Dec 2013 13:37:47 +0000 (14:37 +0100)
commit41932bc1c86e527f866acfcd26506da3bd20509b
treef7dde5097459e6f13db18cd1219ac1cc8b4df246
parent96619fc1b3d06703113ab4c5cd8c15f35a42dc99
s390/compat: correct check for EFAULT in rt-signal frame creation

The return code of the __put_user call to store the rt_sigreturn
system call to the user stack if not properly checked, the err
variable is only checked before to the __put_user. Use an if
statement instead.

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