]> www.infradead.org Git - users/jedix/linux-maple.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)
committerMaxim Uvarov <maxim.uvarov@oracle.com>
Tue, 10 Jan 2012 21:00:12 +0000 (13:00 -0800)
commit6e2aaddba8255927dfa367703d47dd2f62f23dc2
treeb709679650311b83a60758b107f7255bd96ef5a3
parent70ca36fe843ead8b96f46ece64632a959fbe182d
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