diff options
author | Dan Carpenter <error27@gmail.com> | 2010-06-19 15:12:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-09-20 13:18:14 -0700 |
commit | 9cd74cb5174c58dd7165f8cd10897bd775a9a777 (patch) | |
tree | bb8f67f25b23f60879429b89a8c523f974de660b /net/unix/sysctl_net_unix.c | |
parent | f7f040a6b088a9380a640b181687f7c79fface7b (diff) |
i915: return -EFAULT if copy_to_user fails
commit 9927a403ca8c97798129953fa9cbb5dc259c7cb9 upstream.
copy_to_user returns the number of bytes remaining to be copied, but we
want to return a negative error code here. These are returned to
userspace.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions