https://github.com/torvalds/linux
Revision 640f7dcfe047aa5859df5f5d41e7f6455a442b89 authored by Dan Carpenter on 04 June 2010, 10:38:40 UTC, committed by Greg Kroah-Hartman on 04 June 2010, 20:38:58 UTC
copy_to_user() returns the number of bytes remaining but we want to
return a negative error code here.  These functions are used in the
ioctl handler and the error code gets returned to userspace.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

1 parent 2d98bb2
History
Tip revision: 640f7dcfe047aa5859df5f5d41e7f6455a442b89 authored by Dan Carpenter on 04 June 2010, 10:38:40 UTC
Staging: sep: return -EFAULT on copy_to_user errors
Tip revision: 640f7dc
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 936 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 170.0 KB
Makefile -rw-r--r-- 52.6 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top