summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorGong Yuanjun <ruc_gongyuanjun@163.com>2022-05-17 12:57:00 +0300
committerAlex Deucher <alexander.deucher@amd.com>2022-05-26 21:56:31 +0300
commita2b28708b645c5632dc93669ab06e97874c8244f (patch)
tree3342cfaf631482c58b00a4600b60a52aadd550a8 /tools/perf/scripts/python/export-to-postgresql.py
parent10784fec9cbddad2ca6031b28c1ca1d041444dc5 (diff)
downloadlinux-a2b28708b645c5632dc93669ab06e97874c8244f.tar.xz
drm/radeon: fix a possible null pointer dereference
In radeon_fp_native_mode(), the return value of drm_mode_duplicate() is assigned to mode, which will lead to a NULL pointer dereference on failure of drm_mode_duplicate(). Add a check to avoid npd. The failure status of drm_cvt_mode() on the other path is checked too. Signed-off-by: Gong Yuanjun <ruc_gongyuanjun@163.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