Skip to content
Commit 6ce0544c authored by Julia Zhang's avatar Julia Zhang Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: avoid using null object of framebuffer

commit bcfa48ff

 upstream.

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
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f95ed0f5
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