diff options
author | 2024-07-09 19:33:11 +0800 | |
---|---|---|
committer | 2024-07-09 20:02:14 +0200 | |
commit | cb520c3f366c77e8d69e4e2e2781a8ce48d98e79 (patch) | |
tree | 523eb15aff39549c90fa9f0df23a28b08352122e /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/gma500: fix null pointer dereference in psb_intel_lvds_get_modes (diff) | |
download | wireguard-linux-cb520c3f366c77e8d69e4e2e2781a8ce48d98e79.tar.xz wireguard-linux-cb520c3f366c77e8d69e4e2e2781a8ce48d98e79.zip |
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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions