diff options
author | Dan Carpenter <error27@gmail.com> | 2010-07-10 16:30:04 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-07-20 15:24:11 +1000 |
commit | 4ede00c96632bcf8a21dd69ac0248f4c40b4cd0e (patch) | |
tree | be8837d8c3229ed40819aa3eb7f6dd027de6123c /drivers/gpu/drm/i915/i915_reg.h | |
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>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_reg.h')
0 files changed, 0 insertions, 0 deletions