summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_image.c
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2017-10-09 08:17:15 +0300
committerTapani Pälli <[email protected]>2017-10-10 08:17:44 +0300
commit63e6db18c5cdec50688d604a43ddaf86a2238f76 (patch)
tree9f6c78764c243badec64b0c519ec1018d056316e /src/intel/vulkan/anv_image.c
parent4adc45658083f4417b9b6b49c07fae272fcdbe40 (diff)
anv: fix null pointer dereference
CID: 1419033 Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r--src/intel/vulkan/anv_image.c1
1 files changed, 1 insertions, 0 deletions
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;