Skip to content

Fix checking of iommu_map_sgtable return value

Mikko Perttunen dri-devel linux-arm-msm linux-media linux-tegra lkml 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected] change-id 20260417-iommu_map_sgtable-return-a8d3cd591fbc

Versions newest first

  1. v1 Latest4 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4gpu: host1x: Fix iommu_map_sgtable() return value checkdrivers/gpu/host1x/job.c+6 -41 reply
2/4drm/tegra: Fix iommu_map_sgtable() return value checkdrivers/gpu/drm/tegra/gem.c+6 -31 reply
3/4drm/msm: Fix iommu_map_sgtable() return value check and avoid WARNdrivers/gpu/drm/msm/msm_iommu.c+3 -20 replies
4/4media: nvidia: tegra-vde: Fix iommu_map_sgtable() return value checkdrivers/media/platform/nvidia/tegra-vde/iommu.c+5 -41 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchDmitry Osipenko
1/4
2/4
3/4
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Fix checking of iommu_map_sgtable return value

The return value of iommu_map_sgtable changed from unsigned to signed quite a while ago, but not all callers were updated. Do that.

Each patch is independent of each other. The drm/msm patch additionally changes from WARNing in case of mapping error to returning the error code now available.

Best regards
Mikko

---
Mikko Perttunen (4):
gpu: host1x: Fix iommu_map_sgtable() return value check drm/tegra: Fix iommu_map_sgtable() return value check drm/msm: Fix iommu_map_sgtable() return value check and avoid WARN
media: nvidia: tegra-vde: Fix iommu_map_sgtable() return value check

 drivers/gpu/drm/msm/msm_iommu.c                 |  5 +++--
 drivers/gpu/drm/tegra/gem.c                     |  9 ++++++---
 drivers/gpu/host1x/job.c                        | 10 ++++++----
 drivers/media/platform/nvidia/tegra-vde/iommu.c |  9 +++++----
 4 files changed, 20 insertions(+), 13 deletions(-)

---
base-commit: 028ef9c96e96197026887c0f092424679298aae8
change-id: 20260417-iommu_map_sgtable-return-a8d3cd591fbc