iommu: Check for valid pgsize_bitmap in iommu_map/unmap
authorJoerg Roedel <joro@8bytes.org>
Tue, 29 Jan 2013 12:41:09 +0000 (13:41 +0100)
committerJoerg Roedel <joro@8bytes.org>
Wed, 6 Feb 2013 09:47:05 +0000 (10:47 +0100)
In case the page-size bitmap is zero the code path in
iommu_map and iommu_unmap is undefined. Make it defined and
return -ENODEV in this case.

Signed-off-by: Joerg Roedel <joro@8bytes.org>

No differences found