drm/amd/amdgpu: validate the shadow BO.
Subsystems (3)
PATCH 1/1 drm/amd/amdgpu: validate the shadow BO.
From: Alex Xie <[email protected]>
Fixes a rare NULL pointer dereference in amdgpu_ttm_bind.
The issue was found by Nicolai Haehnle.
The patch was tested by Nicolai Haehnle.
Signed-off-by Alex Xie <[email protected]>
Reviewed-by Chunming Zhou <[email protected]>
Reviewed-by Christian König <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +1 -1
@@ -451,7 +451,7 @@ static int amdgpu_cs_validate(void *param, struct amdgpu_bo *bo)return r;if (bo->shadow) - r =amdgpu_cs_bo_validate (p, bo); + r =amdgpu_cs_bo_validate (p, bo->shadow);return r; }
Signature · 1 line
2.5.5
A message that is not in the archive (sent off-list or not yet received): 1480609307-2483-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Quoted 6 lines · Alex Deucher
From: Alex Xie <[email protected]>
Fixes a rare NULL pointer dereference in
amdgpu_ttm_bind.The issue was found by Nicolai Haehnle.
The patch was tested by Nicolai Haehnle.
Just as a suggestion for next time, this can be simplified to
Reported-and-Tested-by Nicolai Haehnle <[email protected]>
:)
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx