]> git.karo-electronics.de Git - karo-tx-linux.git/commit
intel-iommu: fix return value of iommu_unmap() API
authorAllen Kay <allen.m.kay@intel.com>
Fri, 14 Oct 2011 19:31:54 +0000 (12:31 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Dec 2011 20:57:37 +0000 (12:57 -0800)
commitb0db8ad8ad0cb8f2980c3bd742f4f95eb24818b4
treec28b92080f32260be8c1f77d34e6d5a7bd7446c3
parent2afc2fbeaafb4c9a5ab0f92efa0fa739c95c26e4
intel-iommu: fix return value of iommu_unmap() API

commit 292827cb164ad00cc7689a21283b1261c0b6daed upstream.

iommu_unmap() API expects IOMMU drivers to return the actual page order
of the address being unmapped.  Previous code was just returning page
order passed in from the caller.  This patch fixes this problem.

Signed-off-by: Allen Kay <allen.m.kay@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/intel-iommu.c