Staging: bcm: return -EFAULT on copy_to_user() failures
authorDan Carpenter <error27@gmail.com>
Fri, 8 Oct 2010 12:53:48 +0000 (14:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Oct 2010 14:29:54 +0000 (07:29 -0700)
There were a number of places in the bcm_char_ioctl() which returned the
number of bytes remaining to be copied instead of returning -EFAULT.

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

No differences found