anv: fix null pointer dereference
CID: 1419033 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user