From: Dan Carpenter Date: Fri, 8 Oct 2010 12:53:48 +0000 (+0200) Subject: Staging: bcm: return -EFAULT on copy_to_user() failures X-Git-Tag: v2.6.37-rc1~60^2~3^2~217 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf58bd66f6212d838dda4384b8cd21337b47e363;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed