commit | 4ede00c96632bcf8a21dd69ac0248f4c40b4cd0e | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Sat Jul 10 16:30:04 2010 +0200 |
committer | Dave Airlie <airlied@redhat.com> | Tue Jul 20 15:24:11 2010 +1000 |
tree | be8837d8c3229ed40819aa3eb7f6dd027de6123c | |
parent | 772a2f9b488f4d27c314da5eeabde750b9ead41b [diff] |
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 <error27@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>