From: Dan Carpenter Date: Mon, 12 Nov 2012 11:07:24 +0000 (+0000) Subject: vmwgfx: return an -EFAULT if copy_to_user() fails X-Git-Tag: v3.7-rc6~13^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=888155bbf63a5f955d7a45932ff05e848f715bf0;p=pandora-kernel.git vmwgfx: return an -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 here. I fixed a couple of these last year, but I missed this one. Signed-off-by: Dan Carpenter Reviewed-by: Thomas Hellstrom Signed-off-by: Dave Airlie --- Reading git-diff-tree failed