diff options
author | 2024-08-21 12:27:24 +0800 | |
---|---|---|
committer | 2024-08-28 10:05:46 -0400 | |
commit | 3b9a33235c773c7a3768060cf1d2cf8a9153bc37 (patch) | |
tree | 689203610971865d891296adb65562743d45c410 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | drm/amdgpu/gfx12: set UNORD_DISPATCH in compute MQDs (diff) | |
download | wireguard-linux-3b9a33235c773c7a3768060cf1d2cf8a9153bc37.tar.xz wireguard-linux-3b9a33235c773c7a3768060cf1d2cf8a9153bc37.zip |
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: 5d945cbcd4b1 ("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 commit 73dd0ad9e5dad53766ea3e631303430116f834b3)
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions