intel-iommu: Add domain check in domain_remove_one_dev_info
commitf4f6cfc11c3481c36cc3c8cff15dd756ddf1748e
authorMike Habeck <habeck@sgi.com>
Sat, 28 May 2011 18:15:07 +0000 (28 13:15 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Jun 2011 22:05:31 +0000 (23 15:05 -0700)
tree100f70e944ff7ff3debe605b49c2100e35affac9
parentb8f794de1463ab32ed90c97ad6edbcecd931abed
intel-iommu: Add domain check in domain_remove_one_dev_info

commit 8519dc4401ddf8a5399f979870bbeeadbc111186 upstream.

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>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/intel-iommu.c