diff options
author | Ma Ke <make_ruc2021@163.com> | 2023-10-11 09:21:43 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-10-13 11:33:15 -0400 |
commit | 2c1fe3c480f9e1deefd50d4b18be4a046011ee1f (patch) | |
tree | d4da537da5f5e38853045ab9e6639c7624d5eb2c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | ffa88b0019c20d0bacda7cd1463af86ec744d52e (diff) |
drm/radeon: fix a possible null pointer dereference
In radeon_tv_get_modes(), the return value of drm_cvt_mode()
is assigned to mode, which will lead to a NULL pointer
dereference on failure of drm_cvt_mode(). Add a check to
avoid null point dereference.
Signed-off-by: Ma Ke <make_ruc2021@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions