diff options
author | Chen Ridong <chenridong@huawei.com> | 2024-10-29 11:34:29 +0300 |
---|---|---|
committer | Zack Rusin <zack.rusin@broadcom.com> | 2024-11-14 10:13:22 +0300 |
commit | 93d1f41a82de382845af460bf03bcb17dcbf08c5 (patch) | |
tree | 65809b83e76cc0dcab5eda3b4d0e6d7684ee7d95 /tools/perf/scripts/python/gecko.py | |
parent | 9776c0a75a1a86b753b2dc7c1ecc3baa048a8dec (diff) | |
download | linux-93d1f41a82de382845af460bf03bcb17dcbf08c5.tar.xz |
drm/vmwgfx: avoid null_ptr_deref in vmw_framebuffer_surface_create_handle
The 'vmw_user_object_buffer' function may return NULL with incorrect
inputs. To avoid possible null pointer dereference, add a check whether
the 'bo' is NULL in the vmw_framebuffer_surface_create_handle.
Fixes: d6667f0ddf46 ("drm/vmwgfx: Fix handling of dumb buffers")
Signed-off-by: Chen Ridong <chenridong@huawei.com>
Signed-off-by: Zack Rusin <zack.rusin@broadcom.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241029083429.1185479-1-chenridong@huaweicloud.com
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions