kernel_samsung_a53x/drivers/gpu/drm/exynos
Xiang Yang 281df5e1a6 drm/exynos: fix a potential error pointer dereference
[ Upstream commit 73bf1c9ae6c054c53b8e84452c5e46f86dd28246 ]

Smatch reports the warning below:
drivers/gpu/drm/exynos/exynos_hdmi.c:1864 hdmi_bind()
error: 'crtc' dereferencing possible ERR_PTR()

The return value of exynos_drm_crtc_get_by_type maybe ERR_PTR(-ENODEV),
which can not be used directly. Fix this by checking the return value
before using it.

Signed-off-by: Xiang Yang <xiangyang3@huawei.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:15 +01:00
..
exynos7_drm_decon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos5433_drm_decon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_dp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_crtc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_crtc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_dma.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_dpi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_drv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_dsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fb.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fbdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fbdev.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fimc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_fimd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_g2d.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_g2d.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_gem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_gem.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_gsc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_ipp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_ipp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_mic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_plane.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_plane.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_rotator.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_scaler.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_vidi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_drm_vidi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
exynos_hdmi.c drm/exynos: fix a potential error pointer dereference 2024-11-18 12:12:15 +01:00
exynos_mixer.c 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
regs-decon7.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-decon5433.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-fimc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-gsc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-hdmi.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-mixer.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-rotator.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-scaler.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
regs-vp.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00