iommu/amd: Iterate over all aperture ranges in dma_ops_area_alloc
authorJoerg Roedel <jroedel@suse.de>
Mon, 21 Dec 2015 17:34:47 +0000 (18:34 +0100)
committerJoerg Roedel <jroedel@suse.de>
Mon, 28 Dec 2015 16:18:52 +0000 (17:18 +0100)
commit2a87442c5b9858cbfc43eb17da4331551d578d25
tree61920e09675a15f4f5857e2a9c3b654b416dde50
parentd41ab09896dcfc517a7aa050b5c8563b5682a71d
iommu/amd: Iterate over all aperture ranges in dma_ops_area_alloc

This way we don't need to care about the next_index wrapping
around in dma_ops_alloc_addresses.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu.c