From: Dan Carpenter Date: Thu, 12 Aug 2010 20:48:59 +0000 (-0700) Subject: ip2: return -EFAULT on copy_to_user errors X-Git-Tag: v2.6.36-rc3~39^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05254a207a255e1a76f9b349a783b5016b874d72;p=pandora-kernel.git ip2: 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 on errors. Signed-off-by: Dan Carpenter Cc: "Michael H. Warfield" Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed