intel-iommu: Cope with broken HP DC7900 BIOS
commitaf0ce40996ee98e12357f2a4775d6a65a7f54734
authorDavid Woodhouse <David.Woodhouse@intel.com>
Tue, 4 Aug 2009 08:17:20 +0000 (4 09:17 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 22 Oct 2009 22:11:51 +0000 (22 15:11 -0700)
tree76960ee5e69a6b923b4a2fdbc95676a5379fca41
parente0ab4ae09ab13b48360eeaac49f03ffd3c89b934
intel-iommu: Cope with broken HP DC7900 BIOS

commit 0815565adfe3f4c369110c57d8ffe83caefeed68 upstream.

Yet another reason why trusting this stuff to the BIOS was a bad idea.
The HP DC7900 BIOS reports an iommu at an address which just returns all
ones, when VT-d is disabled in the BIOS.

Fix up the missing iounmap in the error paths while we're at it.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: Arto Jantunen <viiru@debian.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/dmar.c