]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/msm: Fix iommu_map_sgtable() return value check and avoid WARN
authorMikko Perttunen <mperttunen@nvidia.com>
Tue, 21 Apr 2026 04:02:38 +0000 (13:02 +0900)
committerRob Clark <robin.clark@oss.qualcomm.com>
Wed, 13 May 2026 21:37:54 +0000 (14:37 -0700)
commit55e0f0d1c1a4ee1e46da7da4d443eb3044fb3851
tree5f00dee13a10fd00302db1544cf2c70a643291a2
parent78d79c614aaa172ae1ddaea19a3885a9ff3ba857
drm/msm: Fix iommu_map_sgtable() return value check and avoid WARN

Commit "iommu: return full error code from iommu_map_sg[_atomic]()"
changed iommu_map_sgtable() to return an ssize_t and negative values
in error cases, rather than a size_t and a zero.

Store the return value in the appropriate type and in case of error,
return it rather than WARNing.

Fixes: ad8f36e4b6b1 ("iommu: return full error code from iommu_map_sg[_atomic]()")
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Patchwork: https://patchwork.freedesktop.org/patch/719685/
Message-ID: <20260421-iommu_map_sgtable-return-v1-3-fb484c07d2a1@nvidia.com>
Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com>
drivers/gpu/drm/msm/msm_iommu.c