kernel_samsung_a53x/drivers/gpu/drm/qxl
Chen Ni 21b826cad4 drm/qxl: Add check for drm_cvt_mode
[ Upstream commit 7bd09a2db0f617377027a2bb0b9179e6959edff3 ]

Add check for the return value of drm_cvt_mode() and return the error if
it fails in order to avoid NULL pointer dereference.

Fixes: 1b043677d4be ("drm/qxl: add qxl_add_mode helper function")
Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Reviewed-by: Heng Qi <hengqi@linux.alibaba.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240621071031.1987974-1-nichen@iscas.ac.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:20:09 +01:00
..
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_cmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_dev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_display.c drm/qxl: Add check for drm_cvt_mode 2024-11-23 23:20:09 +01:00
qxl_draw.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_drv.h drm/qxl: fix UAF on handle creation 2024-11-18 12:12:11 +01:00
qxl_dumb.c drm/qxl: fix UAF on handle creation 2024-11-18 12:12:11 +01:00
qxl_gem.c drm/qxl: fix UAF on handle creation 2024-11-18 12:12:11 +01:00
qxl_image.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_ioctl.c drm/qxl: fix UAF on handle creation 2024-11-18 12:12:11 +01:00
qxl_irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_kms.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_object.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_object.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_prime.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_release.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qxl_ttm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00