From 63e6db18c5cdec50688d604a43ddaf86a2238f76 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Mon, 9 Oct 2017 08:17:15 +0300 Subject: [PATCH] anv: fix null pointer dereference MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit CID: 1419033 Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Reviewed-by: Jason Ekstrand --- src/intel/vulkan/anv_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 487ff275940..c8ebdce0b4e 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c @@ -577,6 +577,7 @@ static void anv_image_bind_memory_plane(struct anv_device *device, if (!memory) { image->planes[plane].bo = NULL; image->planes[plane].bo_offset = 0; + return; } image->planes[plane].bo = memory->bo; -- 2.30.2