Files
linux-stable-mirror/drivers
Thomas Hellstrom 8274c3d489 drm/vmwgfx: Return error code from vmw_execbuf_copy_fence_user
commit 728354c005 upstream.

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: ae2a104058: ("vmwgfx: Implement fence objects")
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-02-15 08:10:12 +01:00
..
…
…
…
…
2019-02-12 19:47:18 +01:00
…
…
…
…
…
…
2018-11-13 11:08:18 -08:00
…
…
…
…
…
…
…
2018-12-21 14:15:17 +01:00
2019-02-12 19:47:25 +01:00
…
…
…
…
…
…
2018-11-13 11:08:51 -08:00
2018-11-27 16:13:09 +01:00
…
2019-02-06 17:30:08 +01:00
2019-02-12 19:46:59 +01:00
…
…
…