Skip to content
Commit 38ec010d authored by Joerg Roedel's avatar Joerg Roedel
Browse files

iommu: Do more input validation in iommu_map_sg()



The IOMMU-API works on page boundarys, unlike the DMA-API
which can work with sub-page buffers. The sg->offset
field does not make sense on the IOMMU level, so force it to
be 0. Do some error-path consolidation while at it.

Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 315786eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment