Module: Mesa Branch: master Commit: 99e9a6721a4033016ca60139cc45be77eee841f1 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=99e9a6721a4033016ca60139cc45be77eee841f1
Author: Marcin Ślusarz <[email protected]> Date: Mon Mar 15 10:35:06 2021 +0100 anv: fix memory allocation error handling Reported by Coverity. Fixes: 0a7224f3ff7 ("anv: group as many command buffers into a single execbuf") Signed-off-by: Marcin Ślusarz <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9596> --- src/intel/vulkan/anv_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c index a582de44735..e0688674274 100644 --- a/src/intel/vulkan/anv_queue.c +++ b/src/intel/vulkan/anv_queue.c @@ -1290,7 +1290,7 @@ anv_queue_submit_post_and_alloc_new(struct anv_queue *queue, return result; *submit = anv_queue_submit_alloc(queue->device, perf_pass); - if (!submit) + if (!*submit) return vk_error(VK_ERROR_OUT_OF_HOST_MEMORY); return VK_SUCCESS; } _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
