diff options
author | Sheng Yang <sheng@linux.intel.com> | 2009-07-08 12:52:52 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-07-08 18:35:10 +0200 |
commit | 4b99d3527041bec1abe9903263a3a1b7d2ba0c4a (patch) | |
tree | c28eb8558d7cdc56607f9eff4c8073928b32d202 /drivers/power/Makefile | |
parent | Free struct device in fw_dev_release() (diff) | |
download | linux-4b99d3527041bec1abe9903263a3a1b7d2ba0c4a.tar.xz linux-4b99d3527041bec1abe9903263a3a1b7d2ba0c4a.zip |
intel-iommu: Fix intel_iommu_unmap_range() with size 0
After some API change, intel_iommu_unmap_range() introduced a assumption that
parameter size != 0, otherwise the dma_pte_clean_range() would have a
overflowed argument. But the user like KVM don't have this assumption before,
then some BUG() triggered.
Fix it by ignoring size = 0.
Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/power/Makefile')
0 files changed, 0 insertions, 0 deletions