From: Joerg Roedel Date: Tue, 4 Nov 2014 13:53:51 +0000 (+0100) Subject: iommu: Do more input validation in iommu_map_sg() X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~13^2~3^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38ec010d9b04ed94845f8ff6f10d33eb6bbfe180;p=pandora-kernel.git 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: Joerg Roedel --- Reading git-diff-tree failed