From af68b0d3460259b4d9255c36f31381059e482019 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 2 Mar 2020 17:26:43 -0600 Subject: [PATCH] vulkan/wsi: Return an error if dup() fails Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Lionel Landwerlin Tested-by: Marge Bot Part-of: --- src/vulkan/wsi/wsi_common.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.30.2