aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorInki Dae <[email protected]>2023-11-01 09:36:51 +0000
committerInki Dae <[email protected]>2023-12-07 02:51:43 +0000
commit8d1b7809684c688005706125b804e1f9792d2b1b (patch)
tree02c6cff1a21087b7763e9a518d9fcd013f6fc86b /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parentdrm/exynos: fix a potential error pointer dereference (diff)
downloadkernel-8d1b7809684c688005706125b804e1f9792d2b1b.tar.gz
kernel-8d1b7809684c688005706125b804e1f9792d2b1b.zip
drm/exynos: fix a wrong error checking
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/[email protected]/ Reported-by : Dan Carpenter <[email protected]> Signed-off-by: Inki Dae <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions