kernel_samsung_a53x/drivers/gpu/drm/nouveau/dispnv04
Ma Ke f0eafbbcd0 drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_ld_modes
commit 66edf3fb331b6c55439b10f9862987b0916b3726 upstream.

In nv17_tv_get_ld_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
Signed-off-by: Ma Ke <make24@iscas.ac.cn>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240625081828.2620794-1-make24@iscas.ac.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 14:19:34 +01:00
..
arb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
crtc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cursor.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dac.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dfp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
disp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
disp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kbuild Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nvreg.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
overlay.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tvmodesnv17.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tvnv04.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tvnv17.c drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_ld_modes 2024-11-19 14:19:34 +01:00
tvnv17.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00