[Mesa-dev] [PATCH] anv: fix null pointer dereference
Jason Ekstrand
jason at jlekstrand.net
Mon Oct 9 14:12:28 UTC 2017
Rb
On October 9, 2017 3:20:55 AM Lionel Landwerlin
<lionel.g.landwerlin at intel.com> wrote:
> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
>
> On 09/10/17 06:19, Tapani Pälli wrote:
>> CID: 1419033
>>
>> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
>> ---
>> 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;
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list