diff options
author | Dan Carpenter <[email protected]> | 2010-08-10 18:03:31 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2010-08-11 08:59:22 -0700 |
commit | f65a03f6ab6f53a6f2847dbac232dcb38b3b3642 (patch) | |
tree | b6412bfc2ec6dd1cc061e11e60cad1949ca6cf8d /net/unix/sysctl_net_unix.c | |
parent | 832ccf6f44969b616b2aeea25276684cf104fa3b (diff) |
kexec: return -EFAULT on copy_to_user() failures
copy_to/from_user() returns the number of bytes remaining to be copied.
It never returns a negative value. The correct return code is -EFAULT and
not -EIO.
All the callers check for non-zero returns so that's Ok, but the return
code is passed to the user so we should fix this.
Signed-off-by: Dan Carpenter <[email protected]>
Cc: Hidetoshi Seto <[email protected]>
Cc: "Paul E. McKenney" <[email protected]>
Cc: "Eric W. Biederman" <[email protected]>
Cc: Simon Kagstrom <[email protected]>
Acked-by: WANG Cong <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions