summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorKevin Mitchell <kevmitch@arista.com>2019-06-12 14:52:03 -0700
committerJoerg Roedel <jroedel@suse.de>2019-07-01 14:02:33 +0200
commit3ddbe913e55516d3e2165d43d4d5570761769878 (patch)
tree6b02a53d2a7502365d7bbc541839ab8c008f3470 /tools/perf/scripts/python/mem-phys-addr.py
parentc1ddcf1cc9add03d775ba787b942729a4b87e7a6 (diff)
iommu/amd: Make iommu_disable safer
Make it safe to call iommu_disable during early init error conditions before mmio_base is set, but after the struct amd_iommu has been added to the amd_iommu_list. For example, this happens if firmware fails to fill in mmio_phys in the ACPI table leading to a NULL pointer dereference in iommu_feature_disable. Fixes: 2c0ae1720c09c ('iommu/amd: Convert iommu initialization to state machine') Signed-off-by: Kevin Mitchell <kevmitch@arista.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions