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 <[email protected]>

Reviewed-by: Christian König <[email protected]> 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 */

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to