From: Dan Carpenter Date: Fri, 4 Jun 2010 10:39:51 +0000 (+0200) Subject: Staging: rc2860: return -EFAULT on copy_to_user errors X-Git-Tag: v2.6.35-rc2~14^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d98bb22c33b033182edd3a3c6b4c4e1d091db4d;p=pandora-kernel.git Staging: rc2860: return -EFAULT on copy_to_user errors copy_to_user() returns the number of bytes remaining but we want to return a negative error code. This is in the ioctl handler and the error code gets passed to userspace. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed