]> git.karo-electronics.de Git - karo-tx-linux.git/commit
compat: return -EFAULT on error in waitid()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Feb 2013 01:25:48 +0000 (12:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:45:20 +0000 (16:45 +1100)
commit544e1482e53c7d09cb214ac51ae858f49ee2bcc9
tree32bff79ceae613538c8cf1344ae3778227eef3d0
parent072b39a4a2e3652c3b4427ee4e2e76f39cc27735
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