Skip to content
Commit bcfa48ff authored by Julia Zhang's avatar Julia Zhang Committed by Alex Deucher
Browse files

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: default avatarFusheng Huang <fusheng.huang@ecarxgroup.com>
Signed-off-by: default avatarJulia Zhang <Julia.Zhang@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 2ec6c7f8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment