diff options
| author | Mikko Perttunen <mperttunen@nvidia.com> | 2026-04-21 07:02:36 +0300 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2026-05-28 18:19:30 +0300 |
| commit | 18f74762013a4b6aa6f905c4459e0f506f9c5c7b (patch) | |
| tree | 4ea601f962a4c581c3db03063cd81ca7f1046f51 /include/linux/timerqueue.h | |
| parent | 0ec0c5949106c5f1a7b50d4d7f34461cdd522264 (diff) | |
| download | linux-18f74762013a4b6aa6f905c4459e0f506f9c5c7b.tar.xz | |
gpu: host1x: Fix iommu_map_sgtable() return value check
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 <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patch.msgid.link/20260421-iommu_map_sgtable-return-v1-1-fb484c07d2a1@nvidia.com
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
