vmwgfx: return -EFAULT if copy_to_user fails
authorDan Carpenter <error27@gmail.com>
Sat, 10 Jul 2010 14:30:04 +0000 (16:30 +0200)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Jul 2010 05:24:11 +0000 (15:24 +1000)
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 <error27@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found