]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
compat: return -EFAULT on error in waitid()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 22 Feb 2013 00:41:57 +0000 (16:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 22 Feb 2013 01:22:16 +0000 (17:22 -0800)
commitbffea77c08c361d174af7ad94887f6aecc3f340b
treeffe22fc5274c4398be4bd8597292a84ca7b9295d
parent9a8ab1c39970a4938a72d94e6fd13be88a797590
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/compat.c