mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-26 19:14:18 +00:00
drm/amd/display: avoid using null object of framebuffer
[ Upstream commit3b9a33235c] 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:5d945cbcd4("drm/amd/display: Create a file dedicated to planes") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit73dd0ad9e5) Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
b65116bee7
commit
f6f5e39a3f
1 changed files with 7 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue