diff options
author | Lukas Wunner <lukas@wunner.de> | 2025-02-25 18:06:04 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2025-03-04 17:00:12 -0600 |
commit | 34bd6141a62d21853b61e759f5c617059b2f3655 (patch) | |
tree | d2971613c88341cb16968079cc3aaf280afbfc6d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 62460bcb5a2ac37bb416aada0167db3fe78ac385 (diff) |
PCI: hotplug: Avoid backpointer dereferencing in has_*_file()
The PCI hotplug core contains five has_*_file() functions to determine
whether a certain sysfs file shall be added (or removed) for a given
hotplug slot.
The functions receive a struct pci_slot pointer which they have to
dereference back to a struct hotplug_slot.
Avoid by passing them a struct hotplug_slot pointer directly.
Link: https://lore.kernel.org/r/5b2f5b4ac45285953d00fd7637732a93fd40d26e.1740501868.git.lukas@wunner.de
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions