kernel_samsung_a53x/drivers/gpu/drm/arm
Huai-Yuan Liu 6d84a444c3 drm/arm/malidp: fix a possible null pointer dereference
[ Upstream commit a1f95aede6285dba6dd036d907196f35ae3a11ea ]

In malidp_mw_connector_reset, new memory is allocated with kzalloc, but
no check is performed. In order to prevent null pointer dereferencing,
ensure that mw_state is checked before calling
__drm_atomic_helper_connector_reset.

Fixes: 8cbc5caf36ef ("drm: mali-dp: Add writeback connector")
Signed-off-by: Huai-Yuan Liu <qq810974084@gmail.com>
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240407063053.5481-1-qq810974084@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-19 12:26:58 +01:00
..
display drm/komeda: drop all currently held locks if deadlock happens 2024-11-18 11:43:13 +01:00
hdlcd_crtc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdlcd_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdlcd_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hdlcd_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
malidp_crtc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
malidp_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
malidp_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
malidp_hw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
malidp_hw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
malidp_mw.c drm/arm/malidp: fix a possible null pointer dereference 2024-11-19 12:26:58 +01:00
malidp_mw.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
malidp_planes.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
malidp_regs.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00