diff options
author | Dan Carpenter <error27@gmail.com> | 2010-08-11 03:03:31 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-11 17:59:22 +0200 |
commit | f65a03f6ab6f53a6f2847dbac232dcb38b3b3642 (patch) | |
tree | b6412bfc2ec6dd1cc061e11e60cad1949ca6cf8d /REPORTING-BUGS | |
parent | parport_serial: use the PCI IRQ if offered (diff) | |
download | linux-f65a03f6ab6f53a6f2847dbac232dcb38b3b3642.tar.xz linux-f65a03f6ab6f53a6f2847dbac232dcb38b3b3642.zip |
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 <error27@gmail.com>
Cc: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Simon Kagstrom <simon.kagstrom@netinsight.net>
Acked-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions