]> git.baikalelectronics.ru Git - kernel.git/commit
intel-iommu: Don't free too much in dma_pte_free_pagetable()
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 30 Jun 2009 02:38:09 +0000 (03:38 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 30 Jun 2009 02:57:38 +0000 (03:57 +0100)
commit97d515541877e838c3a9f4ca7afd30d7db0d3906
tree8c92261cda93b9635e7f84f218f47b2f6f68814e
parent52c5fff02a9b3d2c915460a4bfa2417e33815de7
intel-iommu: Don't free too much in dma_pte_free_pagetable()

The loop condition was wrong -- we should free a PMD only if its
_entire_ range is within the range we're intending to clear. The
early-termination condition was right, but not the loop.

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