]> Pileus Git - ~andy/linux/commit
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)
commit57886518a8cdd319a04f5ea06a5f7ffcb8a93120
tree85de286abc27f32dd18ad4f9eb5488288e98e681
parenta8b8a88a9e3042d41326c854272c881664acba1c
iommu: Check for valid pgsize_bitmap in iommu_map/unmap

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>
drivers/iommu/iommu.c