mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
vulkan/wsi/display: do not dereference a NULL pointer
Fixes dEQP-VK.wsi.direct_drm.swapchain.simulate_oom.* Cc: mesa-stable Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19025>
This commit is contained in:
parent
6ad5f885af
commit
eadc64ab24
1 changed files with 3 additions and 0 deletions
|
|
@ -305,6 +305,9 @@ wsi_display_alloc_connector(struct wsi_display *wsi,
|
|||
if (!connector)
|
||||
return NULL;
|
||||
|
||||
if (!connector)
|
||||
return NULL;
|
||||
|
||||
connector->id = connector_id;
|
||||
connector->wsi = wsi;
|
||||
connector->active = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue