diff options
author | Zack Rusin <[email protected]> | 2021-12-15 15:02:24 -0500 |
---|---|---|
committer | Thomas Zimmermann <[email protected]> | 2021-12-17 16:35:30 +0100 |
commit | 58fa0d90eddeda37b32597eda139e888ebe5af04 (patch) | |
tree | 9348b3eeee3997deb71ddec6680bf674c3fd36ae /scripts/gdb/linux/device.py | |
parent | 50ca8cc7c0fdd9ab16b8b66ffb301fface101fac (diff) |
drm/vmwgfx: Fix possible usage of an uninitialized variable
vmw_user_bo_lookup can fail to lookup user buffers, especially because
the buffer handles come from the userspace. The return value has
to be checked before the buffers are put back.
This was spotted by Dan's Smatch statick checker:
drivers/gpu/drm/vmwgfx/vmwgfx_bo.c:574 vmw_user_bo_synccpu_release()
error: uninitialized symbol 'vmw_bo'.
Signed-off-by: Zack Rusin <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Fixes: 8afa13a0583f ("drm/vmwgfx: Implement DRIVER_GEM")
Reviewed-by: Martin Krastev <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit 60c9ecd705be3a28f79d70ea21c3939db668bf46)
Signed-off-by: Thomas Zimmermann <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions