summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util
diff options
context:
space:
mode:
authorJean-Christophe Guillain <jean-christophe@guillain.net>2026-11-05 16:32:19 +0000
committerJoerg Roedel <joerg.roedel@amd.com>2026-11-06 13:22:44 +0100
commit2cf4be57b301ed2d7af82e70cff5dfd96894d8de (patch)
tree840554440aef942334f2800bf8a5ebe2347e7364 /tools/perf/scripts/python/Perf-Trace-Util
parentfa77b023eb80cdb297ff32f6b13786e483a81ca8 (diff)
iommu/amd: Fix NULL pointer dereference for GPUs without upstream bridge
pci_upstream_bridge() can return NULL for devices without an upstream bridge. The AMD GPU identity mapping quirk dereferences the returned pointer unconditionally, causing a kernel panic during boot. Check the pointer before accessing the bridge vendor ID. This fixes a boot regression on a Lenovo system with an AMD PRO A10-9700E APU. The system now boots with AMD IOMMU enabled. Fixes: bf5bdfd1f8d4 ("iommu/amd: Force identity mode for selected GPUs only") Signed-off-by: Jean-Christophe Guillain <jean-christophe@guillain.net> Signed-off-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions