kernel_samsung_a53x/drivers/gpu/drm/exynos
Inki Dae c73025ddca drm/exynos: fix a wrong error checking
[ Upstream commit 8d1b7809684c688005706125b804e1f9792d2b1b ]

Fix a wrong error checking in exynos_drm_dma.c module.

In the exynos_drm_register_dma function, both arm_iommu_create_mapping()
and iommu_get_domain_for_dev() functions are expected to return NULL as
an error.

However, the error checking is performed using the statement
if(IS_ERR(mapping)), which doesn't provide a suitable error value.
So check if 'mapping' is NULL, and if it is, return -ENODEV.

This issue[1] was reported by Dan.

Changelog v1:
- fix build warning.

[1] https://lore.kernel.org/all/33e52277-1349-472b-a55b-ab5c3462bfcf@moroto.mountain/

Reported-by : Dan Carpenter <dan.carpenter@linaro.org>
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 drm/exynos: fix a wrong error checking 2024-11-18 12:12:15 +01: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