# Re: \[PATCH v1 04/16\] dma-iommu: Return error code from iommu\_dma\_map\_sg()

- From: Christoph Hellwig \<hch@lst.de\>
- Date: 2021-07-16 06:31:35 
- List: linux-alpha
- Page: https://ratatoskr.run/linux-alpha/2021/07/1447212
- Thread: https://ratatoskr.run/linux-alpha/2021/07/1445836/t.md

```text
Careful here. What do all these errors from the low-level code mean
here?  I think we need to clearly standardize on what we actually
return from ->map_sg and possibly document what the callers expect and
can do, and enforce that only those error are reported.
```
