From: Jason Ekstrand Date: Mon, 2 Mar 2020 23:26:43 +0000 (-0600) Subject: vulkan/wsi: Return an error if dup() fails X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af68b0d3460259b4d9255c36f31381059e482019;p=mesa.git vulkan/wsi: Return an error if dup() fails Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Lionel Landwerlin Tested-by: Marge Bot Part-of: --- 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; } }