diff options
author | 2024-06-03 19:31:09 +0800 | |
---|---|---|
committer | 2024-06-25 14:22:08 -0400 | |
commit | bcfa48ff785bd121316592b131ff6531e3e696bb (patch) | |
tree | 268cc0d0d4f1e007b4bf3f7731f0f096c7623ee1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/amd/display: Send DP_TOTAL_LTTPR_CNT during detection if LTTPR is present (diff) | |
download | wireguard-linux-bcfa48ff785bd121316592b131ff6531e3e696bb.tar.xz wireguard-linux-bcfa48ff785bd121316592b131ff6531e3e696bb.zip |
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: Fusheng Huang <fusheng.huang@ecarxgroup.com>
Signed-off-by: Julia Zhang <Julia.Zhang@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions