mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
vulkan/wsi: Return an error if dup() fails
Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4135> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4135>
This commit is contained in:
parent
34d2637fa7
commit
af68b0d346
1 changed files with 1 additions and 0 deletions
|
|
@ -622,6 +622,7 @@ wsi_create_native_image(const struct wsi_swapchain *chain,
|
|||
for (uint32_t i = 0; i < p; i++)
|
||||
close(image->fds[p]);
|
||||
|
||||
result = VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue