Thomas Hellstrom 728354c005 drm/vmwgfx: Return error code from vmw_execbuf_copy_fence_user
The function was unconditionally returning 0, and a caller would have to
rely on the returned fence pointer being NULL to detect errors. However,
the function vmw_execbuf_copy_fence_user() would expect a non-zero error
code in that case and would BUG otherwise.

So make sure we return a proper non-zero error code if the fence pointer
returned is NULL.

Cc: <stable@vger.kernel.org>
Fixes: ae2a104058e2: ("vmwgfx: Implement fence objects")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
2019-02-05 13:50:53 +01:00
..
2018-12-25 11:48:26 -08:00
2018-11-22 12:54:38 +10:00
2018-11-28 09:31:07 -08:00
2018-12-25 11:48:26 -08:00
2018-11-20 14:56:18 +01:00
2018-11-29 10:28:49 +10:00
2018-06-28 13:29:07 +10:00
2018-11-20 14:56:18 +01:00
2018-12-25 11:48:26 -08:00
2018-12-25 11:48:26 -08:00
2018-07-13 18:40:28 +02:00
2018-10-04 11:03:34 +10:00
2018-11-30 10:57:18 +01:00