From: Dan Carpenter Date: Sat, 19 Mar 2011 05:44:34 +0000 (+0300) Subject: xen-gntdev: return -EFAULT on copy_to_user failure X-Git-Tag: v2.6.39-rc1~3^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12f0258d5b44b3b5a9442ec461bbac1f7edab8c6;p=pandora-kernel.git xen-gntdev: return -EFAULT on copy_to_user failure copy_to_user() returns the amount of data remaining to be copied. We want to return a negative error code here. The upper layers just call WARN_ON() if we return non-zero so this doesn't change the behavior. But returning -EFAULT is still cleaner. Signed-off-by: Dan Carpenter Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed