diff options
author | 2024-07-09 17:20:11 +0800 | |
---|---|---|
committer | 2024-07-09 20:02:02 +0200 | |
commit | 2df7aac81070987b0f052985856aa325a38debf6 (patch) | |
tree | 8320bd928e77e055739fb3f23eafc74e21905e12 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | drm/meson: fix canvas release in bind function (diff) | |
download | wireguard-linux-2df7aac81070987b0f052985856aa325a38debf6.tar.xz wireguard-linux-2df7aac81070987b0f052985856aa325a38debf6.zip |
drm/gma500: fix null pointer dereference in psb_intel_lvds_get_modes
In psb_intel_lvds_get_modes(), the return value of drm_mode_duplicate() is
assigned to mode, which will lead to a possible NULL pointer dereference
on failure of drm_mode_duplicate(). Add a check to avoid npd.
Cc: stable@vger.kernel.org
Fixes: 89c78134cc54 ("gma500: Add Poulsbo support")
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/20240709092011.3204970-1-make24@iscas.ac.cn
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions