From: Heiko Carstens Date: Wed, 6 Jan 2010 04:41:48 +0000 (-0800) Subject: sparc: copy_from_user() should not return -EFAULT X-Git-Tag: v2.6.33-rc6~28^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6df1c176994fab993f3112e3e4145a7d2bae64d0;p=pandora-kernel.git sparc: copy_from_user() should not return -EFAULT From: Heiko Carstens Callers of copy_from_user() expect it to return the number of bytes it could not copy. In no case it is supposed to return -EFAULT. In case of a detected buffer overflow just return the requested length. In addition one could think of a memset that would clear the size of the target object. Signed-off-by: Heiko Carstens Signed-off-by: David S. Miller --- Reading git-diff-tree failed