From: Dan Carpenter Date: Tue, 18 Jun 2013 07:05:29 +0000 (+0300) Subject: fbmem: return -EFAULT on copy_to_user() failure X-Git-Tag: v3.11-rc1~66^2~1^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c30aba2b2894ceb2108f1cb2602015b121e9a81;p=pandora-kernel.git fbmem: return -EFAULT on copy_to_user() failure copy_to_user() returns the number of bytes remaining to be copied. put_user() returns -EFAULT on error. This function ORs a bunch of stuff together and returns jumbled non-zero values on error. It should return -EFAULT. Signed-off-by: Dan Carpenter Signed-off-by: Tomi Valkeinen --- Reading git-diff-tree failed