Skip to content

Commit df11586

Browse files
committed
Merge branch 'pci/reset'
- Fix locking issue in the slot reset path (Ilpo Järvinen) * pci/reset: PCI: Fix lock symmetry in pci_slot_unlock()
2 parents 4dac48e + f3efb95 commit df11586

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/pci/pci.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5524,7 +5524,8 @@ static void pci_slot_unlock(struct pci_slot *slot)
55245524
continue;
55255525
if (dev->subordinate)
55265526
pci_bus_unlock(dev->subordinate);
5527-
pci_dev_unlock(dev);
5527+
else
5528+
pci_dev_unlock(dev);
55285529
}
55295530
}
55305531

0 commit comments

Comments
 (0)