From: Dan Carpenter Date: Fri, 4 Jun 2010 10:38:40 +0000 (+0200) Subject: Staging: sep: return -EFAULT on copy_to_user errors X-Git-Tag: v2.6.35-rc2~14^2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=640f7dcfe047aa5859df5f5d41e7f6455a442b89;p=pandora-kernel.git Staging: sep: 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 here. These functions are used in the ioctl handler and the error code gets returned to userspace. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed