diff options
author | Ma Ke <make24@iscas.ac.cn> | 2024-06-27 10:42:04 +0300 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2024-06-28 21:00:10 +0300 |
commit | 80bec6825b19d95ccdfd3393cf8ec15ff2a749b4 (patch) | |
tree | ea75723f87854e52bacda5d8def0ff5e9b964f67 /scripts/gdb/linux/modules.py | |
parent | 3285d8f0a2ede604c368155c9c0921e16d41f70a (diff) | |
download | linux-80bec6825b19d95ccdfd3393cf8ec15ff2a749b4.tar.xz |
drm/nouveau: fix null pointer dereference in nouveau_connector_get_modes
In nouveau_connector_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: 6ee738610f41 ("drm/nouveau: Add DRM driver for NVIDIA GPUs")
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240627074204.3023776-1-make24@iscas.ac.cn
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions