[patch] vmwgfx: return -EFAULT instead of number of bytes remaining

2011-10-19 Thread Dan Carpenter
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 diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c index 97f23ab..3f63435 100644 --- a/drivers/gpu/

[patch] vmwgfx: return -EFAULT instead of number of bytes remaining

2011-10-18 Thread Dan Carpenter
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 diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c index 97f23ab..3f63435 100644 --- a/drivers/gpu/

[patch] vmwgfx: return -EFAULT instead of number of bytes remaining

2011-10-18 Thread Thomas Hellstrom
On 10/18/2011 08:09 AM, Dan Carpenter wrote: > 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 > Reviewed-by: Thomas Hellstrom > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl

Re: [patch] vmwgfx: return -EFAULT instead of number of bytes remaining

2011-10-17 Thread Thomas Hellstrom
On 10/18/2011 08:09 AM, Dan Carpenter wrote: 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 Reviewed-by: Thomas Hellstrom diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/d