mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02: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>
(cherry picked from commit eadc64ab24)
This commit is contained in:
parent
d4456f4579
commit
1b6fa2f407
2 changed files with 4 additions and 1 deletions
|
|
@ -913,7 +913,7 @@
|
|||
"description": "vulkan/wsi/display: do not dereference a NULL pointer",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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