diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2019-01-31 10:55:37 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-02-15 08:10:12 +0100 |
commit | 8274c3d4895bc7bd9296137c59ae73a21644e8a6 (patch) | |
tree | 5ebbbd1a7c627cb929137627d8e7a765e06e3a4a /include | |
parent | d74ff5f67849944eeee9796192b8cc77354d3828 (diff) | |
download | linux-stable-8274c3d4895bc7bd9296137c59ae73a21644e8a6.tar.gz linux-stable-8274c3d4895bc7bd9296137c59ae73a21644e8a6.tar.bz2 linux-stable-8274c3d4895bc7bd9296137c59ae73a21644e8a6.zip |
drm/vmwgfx: Return error code from vmw_execbuf_copy_fence_user
commit 728354c005c36eaf44b6e5552372b67e60d17f56 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: ae2a104058e2: ("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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions