diff options
| author | Suravee Suthikulpanit <[email protected]> | 2018-02-05 10:45:53 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2018-02-13 18:31:20 +0000 |
| commit | c5611a8751e67595e4e7d3feaff3c900b92094b9 (patch) | |
| tree | b833cce9dd9ad3501f7ba151aadf09faeaa2a6b9 /fs/proc/array.c | |
| parent | Linux 4.16-rc1 (diff) | |
| download | kernel-c5611a8751e67595e4e7d3feaff3c900b92094b9.tar.gz kernel-c5611a8751e67595e4e7d3feaff3c900b92094b9.zip | |
iommu: Do not return error code for APIs with size_t return type
Currently, iommu_unmap, iommu_unmap_fast and iommu_map_sg return
size_t. However, some of the return values are error codes (< 0),
which can be misinterpreted as large size. Therefore, returning size 0
instead to signify failure to map/unmap.
Cc: Joerg Roedel <[email protected]>
Cc: Alex Williamson <[email protected]>
Signed-off-by: Suravee Suthikulpanit <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
