linux-yocto/drivers/gpu/drm/vmwgfx
Chen Ridong 93d1f41a82 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: d6667f0ddf ("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
2024-11-14 02:13:22 -05:00
..
device_include
Kconfig drm/vmwgfx: Fix missing HYPERVISOR_GUEST dependency 2024-06-17 11:56:54 +02:00
Makefile
ttm_object.c
ttm_object.h
vmw_surface_cache.h drm/vmwgfx: Fix handling of dumb buffers 2024-07-24 22:21:53 -04:00
vmwgfx_binding.c
vmwgfx_binding.h
vmwgfx_blit.c drm/vmwgfx: Remove unnecessary NULL checks before kvfree() 2024-10-10 23:01:45 -04:00
vmwgfx_bo.c drm/vmwgfx: Prevent unmapping active read buffers 2024-08-26 00:19:40 -04:00
vmwgfx_bo.h drm/vmwgfx: Prevent unmapping active read buffers 2024-08-26 00:19:40 -04:00
vmwgfx_cmd.c
vmwgfx_cmdbuf_res.c
vmwgfx_cmdbuf.c
vmwgfx_context.c
vmwgfx_cotable.c
vmwgfx_devcaps.c
vmwgfx_devcaps.h
vmwgfx_drv.c fs: move FMODE_UNSIGNED_OFFSET to fop_flags 2024-08-30 08:22:36 +02:00
vmwgfx_drv.h drm/vmwgfx: Limit display layout ioctl array size to VMWGFX_NUM_DISPLAY_UNITS 2024-10-10 14:27:01 -04:00
vmwgfx_execbuf.c
vmwgfx_fence.c drm/vmwgfx: Fix a deadlock in dma buf fence polling 2024-07-24 22:21:36 -04:00
vmwgfx_fence.h
vmwgfx_gem.c drm/vmwgfx: Add basic support for external buffers 2024-07-24 22:21:53 -04:00
vmwgfx_gmr.c
vmwgfx_gmrid_manager.c drm/vmwgfx: Standardize use of kibibytes when logging 2024-06-05 22:10:49 -04:00
vmwgfx_ioctl.c
vmwgfx_irq.c
vmwgfx_kms.c drm/vmwgfx: avoid null_ptr_deref in vmw_framebuffer_surface_create_handle 2024-11-14 02:13:22 -05:00
vmwgfx_kms.h drm/vmwgfx: Limit display layout ioctl array size to VMWGFX_NUM_DISPLAY_UNITS 2024-10-10 14:27:01 -04:00
vmwgfx_ldu.c drm/vmwgfx: Fix handling of dumb buffers 2024-07-24 22:21:53 -04:00
vmwgfx_mksstat.h
vmwgfx_mob.c
vmwgfx_msg_arm64.h drm/vmwgfx: Use VMware hypercall API 2024-06-25 17:15:47 +02:00
vmwgfx_msg_x86.h drm/vmwgfx: Use VMware hypercall API 2024-06-25 17:15:47 +02:00
vmwgfx_msg.c drm/vmwgfx: Use VMware hypercall API 2024-06-25 17:15:47 +02:00
vmwgfx_overlay.c drm/vmwgfx: Fix overlay when using Screen Targets 2024-07-24 22:29:07 -04:00
vmwgfx_page_dirty.c
vmwgfx_prime.c drm/vmwgfx: Fix handling of dumb buffers 2024-07-24 22:21:53 -04:00
vmwgfx_reg.h
vmwgfx_resource_priv.h
vmwgfx_resource.c drm/vmwgfx: Fix handling of dumb buffers 2024-07-24 22:21:53 -04:00
vmwgfx_scrn.c drm/vmwgfx: Fix handling of dumb buffers 2024-07-24 22:21:53 -04:00
vmwgfx_shader.c
vmwgfx_simple_resource.c
vmwgfx_so.c
vmwgfx_so.h
vmwgfx_stdu.c drm/vmwgfx: Handle possible ENOMEM in vmw_stdu_connector_atomic_check 2024-10-10 14:27:51 -04:00
vmwgfx_streamoutput.c
vmwgfx_surface.c drm/vmwgfx: Cleanup kms setup without 3d 2024-10-10 14:31:54 -04:00
vmwgfx_system_manager.c
vmwgfx_ttm_buffer.c
vmwgfx_va.c
vmwgfx_validation.c
vmwgfx_validation.h
vmwgfx_vkms.c Merge drm/drm-fixes into drm-misc-fixes 2024-07-30 09:09:23 +02:00
vmwgfx_vkms.h