summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/bridge/tc358768.c
diff options
context:
space:
mode:
authorChen Ridong <chenridong@huawei.com>2024-10-29 08:34:29 +0000
committerZack Rusin <zack.rusin@broadcom.com>2024-11-14 02:13:22 -0500
commit93d1f41a82de382845af460bf03bcb17dcbf08c5 (patch)
tree65809b83e76cc0dcab5eda3b4d0e6d7684ee7d95 /drivers/gpu/drm/bridge/tc358768.c
parent9776c0a75a1a86b753b2dc7c1ecc3baa048a8dec (diff)
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 'drivers/gpu/drm/bridge/tc358768.c')
0 files changed, 0 insertions, 0 deletions