kernel_samsung_a53x/drivers/gpu/drm/nouveau/dispnv04
Ma Ke 1b68916f64 drm/nouveau/dispnv04: fix null pointer dereference in nv17_tv_get_hd_modes
commit 6d411c8ccc0137a612e0044489030a194ff5c843 upstream.

In nv17_tv_get_hd_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(). The same applies to drm_cvt_mode().
Add a check to avoid null pointer dereference.

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/20240625081029.2619437-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_hd_modes 2024-11-19 14:19:34 +01:00
tvnv17.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00