[PATCH 1/2] drm/amdgpu: initialize bo in ras_reserve_bad_pages

Christian König ckoenig.leichtzumerken at gmail.com
Tue Sep 17 08:03:29 UTC 2019


Am 17.09.19 um 08:16 schrieb Zhou1, Tao:
> the bo pointer is reused for bad pages, initialize it in each loop
>
> Signed-off-by: Tao Zhou <tao.zhou1 at amd.com>

Reviewed-by: Christian König <christian.koenig at amd.com> for the series.

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> index 5f623daf5078..090daf595469 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
> @@ -1421,6 +1421,7 @@ int amdgpu_ras_reserve_bad_pages(struct amdgpu_device *adev)
>   
>   		data->bps_bo[i] = bo;
>   		data->last_reserved = i + 1;
> +		bo = NULL;
>   	}
>   
>   	/* continue to save bad pages to eeprom even reesrve_vram fails */



More information about the amd-gfx mailing list