From bf58bd66f6212d838dda4384b8cd21337b47e363 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 8 Oct 2010 14:53:48 +0200 Subject: [PATCH] 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-format-patch failed