On Tue, Apr 21, 2026 at 01:02:36PM +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.
> 
> pin_job() also was incorrectly assigning to 'int', which could cause
> overflows into negative values.
> 
> Update pin_job() 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 <[email protected]>
> ---
>  drivers/gpu/host1x/job.c | 10 ++++++----
>  1 file changed, 6 insertions(+), 4 deletions(-)

Applied, thanks.

Thierry

Attachment: signature.asc
Description: PGP signature

Reply via email to