aboutsummaryrefslogtreecommitdiff
path: root/tools/lib/api/fs/tracing_path.c
diff options
context:
space:
mode:
authorLukas Wunner <[email protected]>2020-07-21 13:24:51 +0200
committerBjorn Helgaas <[email protected]>2020-09-17 16:25:45 -0500
commit10791141a6cfc96eecf578fb1240f191ac112e02 (patch)
tree7cb0cef263cc4598b705088c6b3aca30da70d828 /tools/lib/api/fs/tracing_path.c
parent8c46d543aaa900942365b2b46a165fb49e939954 (diff)
PCI: Simplify pci_dev_reset_slot_function()
pci_dev_reset_slot_function() refuses to reset a hotplug slot if it is shared by multiple pci_devs. That's the case if and only if the slot is occupied by a multifunction device. Simplify the function to check the device's multifunction flag instead of iterating over the devices on the bus. (Iterating over the devices requires holding pci_bus_sem, which the function erroneously does not acquire.) Link: https://lore.kernel.org/r/c6aab5af096f7b1b3db57f6335cebba8f0fcca89.1595330431.git.lukas@wunner.de Signed-off-by: Lukas Wunner <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Cc: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions