intel-iommu: Don't keep freeing page zero in dma_pte_free_pagetable()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 2 Jul 2009 11:02:34 +0000 (12:02 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Thu, 2 Jul 2009 11:02:38 +0000 (12:02 +0100)
commit6a43e574c5af7d9bd084992b1c9c3cdbc3b6c0e9
tree64f32c60749008747d201b7168b33e1181682bf2
parent75e6bf9638992dfc0fec9c3ca10444c8e0d6a638
intel-iommu: Don't keep freeing page zero in dma_pte_free_pagetable()

Check dma_pte_present() and only free the page if there _is_ one.
Kind of surprising that there was no warning about this.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c