aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorMa Ke <[email protected]>2024-08-21 04:27:24 +0000
committerAlex Deucher <[email protected]>2024-08-23 14:54:11 +0000
commit73dd0ad9e5dad53766ea3e631303430116f834b3 (patch)
treeb8a0159d76ffd1aa390ab18643a114d0fca855d7 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/amdgpu: add list empty check to avoid null pointer issue (diff)
downloadkernel-73dd0ad9e5dad53766ea3e631303430116f834b3.tar.gz
kernel-73dd0ad9e5dad53766ea3e631303430116f834b3.zip
drm/amd/display: avoid using null object of framebuffer
Instead of using state->fb->obj[0] directly, get object from framebuffer by calling drm_gem_fb_get_obj() and return error code when object is null to avoid using null object of framebuffer. Fixes: 5d945cbcd4b1 ("drm/amd/display: Create a file dedicated to planes") Signed-off-by: Ma Ke <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions