diff options
author | Jason Ekstrand <[email protected]> | 2020-03-02 17:26:43 -0600 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-10 16:39:27 +0000 |
commit | af68b0d3460259b4d9255c36f31381059e482019 (patch) | |
tree | 3bf97e01a07391cc49b464a452dc6857a966df2a /src/vulkan | |
parent | 34d2637fa76ba4dd1969f06352e191ccb228d8f3 (diff) |
vulkan/wsi: Return an error if dup() fails
Cc: [email protected]
Reviewed-by: Lionel Landwerlin <[email protected]>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4135>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4135>
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/wsi/wsi_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c index c278d5d1347..8d6654cb47d 100644 --- a/src/vulkan/wsi/wsi_common.c +++ b/src/vulkan/wsi/wsi_common.c @@ -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; } } |