diff options
author | Julia Zhang <julia.zhang@amd.com> | 2024-06-03 14:31:09 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-06-28 00:10:39 +0300 |
commit | 79ea35c7d84b73733ee5281a089168e71d0168d7 (patch) | |
tree | da2a134b4f5c55edcd7a1a669a7fb4550cae0b63 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bdbdc7cecd00305dc844a361f9883d3a21022027 (diff) | |
download | linux-79ea35c7d84b73733ee5281a089168e71d0168d7.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions