diff options
author | 2011-03-19 08:44:34 +0300 | |
---|---|---|
committer | 2011-03-24 10:32:44 -0400 | |
commit | 12f0258d5b44b3b5a9442ec461bbac1f7edab8c6 (patch) | |
tree | 9dbaf66cde561ec613e5bd838a7a52642c3b1ae4 /fs/jbd2/commit.c | |
parent | Merge branch 'stable/xen.pm.bug-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/konrad/xen (diff) | |
download | wireguard-linux-12f0258d5b44b3b5a9442ec461bbac1f7edab8c6.tar.xz wireguard-linux-12f0258d5b44b3b5a9442ec461bbac1f7edab8c6.zip |
xen-gntdev: return -EFAULT on copy_to_user failure
copy_to_user() returns the amount of data remaining to be copied. We
want to return a negative error code here. The upper layers just
call WARN_ON() if we return non-zero so this doesn't change the
behavior. But returning -EFAULT is still cleaner.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions