summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c?id=c71c9aafd5faa579e6ffe32018071c7af97d5a2e
diff options
context:
space:
mode:
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>2024-06-03 10:46:10 +0200
committerAlex Deucher <alexander.deucher@amd.com>2024-06-27 17:09:46 -0400
commitc71c9aafd5faa579e6ffe32018071c7af97d5a2e (patch)
tree9e1acf150eab293664811f85d626f538986a12c9 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c?id=c71c9aafd5faa579e6ffe32018071c7af97d5a2e
parente779af8e8b51b4b3d403fa002e579b56b1931296 (diff)
amdgpu: don't dereference a NULL resource in sysfs code
dma_resv_trylock being successful doesn't guarantee that bo->tbo.base.resv is not NULL, so check its validity before using it. Signed-off-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c?id=c71c9aafd5faa579e6ffe32018071c7af97d5a2e')
0 files changed, 0 insertions, 0 deletions