vmwgfx: return -EFAULT instead of number of bytes remaining
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 18 Oct 2011 06:09:19 +0000 (09:09 +0300)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Oct 2011 09:41:11 +0000 (10:41 +0100)
commitd2c184fb10656f2a6d59fef76efb3a8b12fb6ed4
treeec6b13518ca0bc7ef4b460d01671ff3c4c3294ac
parentbd8315c4a8ade3c0cd6c1933ae6e453958397d22
vmwgfx: return -EFAULT instead of number of bytes remaining

The intent here was to return an error code, but instead the code
returns the number of bytes remaining (that weren't copied).

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c