diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-02-22 01:41:57 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-02-22 02:22:16 +0100 |
commit | bffea77c08c361d174af7ad94887f6aecc3f340b (patch) | |
tree | ffe22fc5274c4398be4bd8597292a84ca7b9295d /fs/notify | |
parent | bug.h, compiler.h: introduce compiletime_assert & BUILD_BUG_ON_MSG (diff) | |
download | linux-bffea77c08c361d174af7ad94887f6aecc3f340b.tar.xz linux-bffea77c08c361d174af7ad94887f6aecc3f340b.zip |
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>
Diffstat (limited to 'fs/notify')
0 files changed, 0 insertions, 0 deletions