Staging: bcm: return -EFAULT on copy_to_user() failures
commitbf58bd66f6212d838dda4384b8cd21337b47e363
authorDan Carpenter <error27@gmail.com>
Fri, 8 Oct 2010 12:53:48 +0000 (8 14:53 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 Oct 2010 14:29:54 +0000 (8 07:29 -0700)
tree489bde9df2b3c1eacf764ed681a850503e28f6cf
parenta1823f2ec3ffa86b7b3676bfd432b6da25298ff6
Staging: bcm: return -EFAULT on copy_to_user() failures

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>
drivers/staging/bcm/Bcmchar.c