aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorMa Ke <make24@iscas.ac.cn>2024-07-09 19:33:11 +0800
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>2024-07-09 20:02:14 +0200
commitcb520c3f366c77e8d69e4e2e2781a8ce48d98e79 (patch)
tree523eb15aff39549c90fa9f0df23a28b08352122e /tools/perf/scripts/python/task-analyzer.py
parent2df7aac81070987b0f052985856aa325a38debf6 (diff)
drm/gma500: fix null pointer dereference in cdv_intel_lvds_get_modes
In cdv_intel_lvds_get_modes(), 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. Cc: stable@vger.kernel.org Fixes: 6a227d5fd6c4 ("gma500: Add support for Cedarview") Signed-off-by: Ma Ke <make24@iscas.ac.cn> Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240709113311.37168-1-make24@iscas.ac.cn
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions