From: Dan Carpenter Date: Sat, 10 Jul 2010 14:30:04 +0000 (+0200) Subject: vmwgfx: return -EFAULT if copy_to_user fails X-Git-Tag: v2.6.35-rc6~12^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ede00c96632bcf8a21dd69ac0248f4c40b4cd0e;p=pandora-kernel.git vmwgfx: return -EFAULT if copy_to_user fails copy_to_user() returns the number of bytes remaining to be copied, but we want to return a negative error code. This gets copied to user space. Signed-off-by: Dan Carpenter Signed-off-by: Dave Airlie --- Reading git-diff-tree failed