aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
diff options
context:
space:
mode:
authorJulia Zhang <[email protected]>2024-06-03 11:31:09 +0000
committerAlex Deucher <[email protected]>2024-06-27 21:10:39 +0000
commit79ea35c7d84b73733ee5281a089168e71d0168d7 (patch)
treeda2a134b4f5c55edcd7a1a669a7fb4550cae0b63 /drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
parentdrm/amdgpu: Fix smatch static checker warning (diff)
downloadkernel-79ea35c7d84b73733ee5281a089168e71d0168d7.tar.gz
kernel-79ea35c7d84b73733ee5281a089168e71d0168d7.zip
drm/amdgpu: 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. Reported-by: Fusheng Huang <[email protected]> Signed-off-by: Julia Zhang <[email protected]> Reviewed-by: Huang Rui <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c')
0 files changed, 0 insertions, 0 deletions