]> git.baikalelectronics.ru Git - kernel.git/commit
intel-iommu: Add domain check in domain_remove_one_dev_info
authorMike Habeck <habeck@sgi.com>
Sat, 28 May 2011 18:15:07 +0000 (13:15 -0500)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 1 Jun 2011 11:47:48 +0000 (12:47 +0100)
commit5be78a698cecf8e67849e91c69a3b3dce2140bd1
treea1eb0bc0fa29b955a757a1e1c1c76f569e6be4ee
parentcbdafffa3efef41d56cf6384a68d354ecabec1ef
intel-iommu: Add domain check in domain_remove_one_dev_info

The comment in domain_remove_one_dev_info() states "No need to compare
PCI domain; it has to be the same". But for the si_domain that isn't
going to be true, as it consists of all the PCI devices that are
identity mapped thus multiple PCI domains can be in si_domain.  The
code needs to validate the PCI domain too.

Signed-off-by: Mike Habeck <habeck@sgi.com>
Signed-off-by: Mike Travis <travis@sgi.com>
Cc: stable@kernel.org
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c