Mesa (master): anv: fix null pointer dereference
Tapani Pälli
tpalli at kemper.freedesktop.org
Tue Oct 10 05:18:48 UTC 2017
Module: Mesa
Branch: master
Commit: 63e6db18c5cdec50688d604a43ddaf86a2238f76
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=63e6db18c5cdec50688d604a43ddaf86a2238f76
Author: Tapani Pälli <tapani.palli at intel.com>
Date: Mon Oct 9 08:17:15 2017 +0300
anv: fix null pointer dereference
CID: 1419033
Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
---
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 487ff27594..c8ebdce0b4 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;
More information about the mesa-commit
mailing list