Re: [PATCH 2/4] drm/tegra: Fix iommu_map_sgtable() return value check
From: Thierry Reding
Date: Thu May 28 2026 - 11:24:27 EST
On Tue, Apr 21, 2026 at 01:02:37PM +0900, Mikko Perttunen wrote:
> 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.
>
> Update tegra_bo_iommu_map() to correctly check for errors from
> iommu_map_sgtable.
>
> Fixes: ad8f36e4b6b1 ("iommu: return full error code from iommu_map_sg[_atomic]()")
> Signed-off-by: Mikko Perttunen <mperttunen@xxxxxxxxxx>
> ---
> drivers/gpu/drm/tegra/gem.c | 9 ++++++---
> 1 file changed, 6 insertions(+), 3 deletions(-)
Applied, thanks.
Thierry
Attachment:
signature.asc
Description: PGP signature