Re: [PATCH] drm/vmwgfx: avoid null_ptr_deref in vmw_framebuffer_surface_create_handle

2024-11-07 Thread Chen Ridong
On 2024/10/29 16:34, Chen Ridong wrote: > From: Chen Ridong > > 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_framebuffe

[PATCH] drm/vmwgfx: avoid null_ptr_deref in vmw_framebuffer_surface_create_handle

2024-10-29 Thread Chen Ridong
From: Chen Ridong 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