]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 12 Dec 2013 10:00:51 +0000 (11:00 +0100)
commit7f8864a56c2220c64b7496a12e0c2325d9f826b6
tree232e108815505200dcfdd12bf9a62181040c2866
parentf9e56998ff8c568fb7f6477a00e8bde3ccc70d15
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