]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Fix wrong assumption in iommu-group specific code
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 28 Sep 2012 14:14:44 +0000 (16:14 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Fri, 28 Sep 2012 14:14:44 +0000 (16:14 +0200)
commit6233d0c5d3ec30b32e2153c2217d5f4fd4c971ee
tree2dd8b9d9156e8c276c9ee2a7f37a62447184d2c9
parent38ff664f6ca6f5f2677e62967dc85b8eb2e0574d
iommu/amd: Fix wrong assumption in iommu-group specific code

The new IOMMU groups code in the AMD IOMMU driver makes the
assumption that there is a pci_dev struct available for all
device-ids listed in the IVRS ACPI table. Unfortunatly this
assumption is not true and so this code causes a NULL
pointer dereference at boot on some systems.

Fix it by making sure the given pointer is never NULL when
passed to the group specific code. The real fix is larger
and will be queued for v3.7.

Reported-by: Florian Dazinger <florian@dazinger.net>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu.c