]> git.karo-electronics.de Git - karo-tx-linux.git/commit
compat: return -EFAULT on error in waitid()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 20 Feb 2013 02:13:32 +0000 (13:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:02 +0000 (16:52 +1100)
commit2bfe2dccde68387be27578fb188432d9eccd0025
treea0ccfad85aa6458ec8f6bae490ae57d4c047a445
parent627c10f621120deeab0a7c32875db59e5463168f
compat: return -EFAULT on error in waitid()

The copy_to_user() call returns the number of bytes remaining but we want
to return -EFAULT on error.

Fixes "x32: fix waitid()"

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/compat.c