mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 15:00:10 +01:00
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:
parent
4adc456580
commit
63e6db18c5
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue