Skip to content
Commit 3b9a3323 authored by Ma Ke's avatar Ma Ke Committed by Alex Deucher
Browse files

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: 5d945cbc ("drm/amd/display: Create a file dedicated to planes")
Signed-off-by: default avatarMa Ke <make24@iscas.ac.cn>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 73dd0ad9)
parent 959fc102
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment