summaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>2025-05-05 14:54:12 +0300
committerBjorn Helgaas <bhelgaas@google.com>2025-05-05 13:39:59 -0500
commitf3efb9569b4a21354ef2caf7ab0608a3e14cc6e4 (patch)
treefb9ad64d821c1cc2df1bbe5665d604a3f729f4fd /scripts/patch-kernel
parent0af2f6be1b4281385b618cb86ad946eded089ac8 (diff)
downloadkernel-f3efb9569b4a21354ef2caf7ab0608a3e14cc6e4.tar.gz
PCI: Fix lock symmetry in pci_slot_unlock()
The commit a4e772898f8b ("PCI: Add missing bridge lock to pci_bus_lock()") made the lock function to call depend on dev->subordinate but left pci_slot_unlock() unmodified creating locking asymmetry compared with pci_slot_lock(). Because of the asymmetric lock handling, the same bridge device is unlocked twice. First pci_bus_unlock() unlocks bus->self and then pci_slot_unlock() will unconditionally unlock the same bridge device. Move pci_dev_unlock() inside an else branch to match the logic in pci_slot_lock(). Fixes: a4e772898f8b ("PCI: Add missing bridge lock to pci_bus_lock()") Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Lukas Wunner <lukas@wunner.de> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20250505115412.37628-1-ilpo.jarvinen@linux.intel.com
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
ernel/commit/arch/powerpc/kvm/Kconfig?h=linux-6.12.y&id=79e06c4c4950be2abd8ca5d2428a8c915aa62c24'>Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvmLinus Torvalds 2021-12-19Merge branch 'topic/ppc-kvm' of https://git.kernel.org/pub/scm/linux/kernel/g...Paolo Bonzini 2021-12-09powerpc/64s: Make hash MMU support configurableNicholas Piggin 2021-12-08KVM: Use interval tree to do fast hva lookup in memslotsMaciej S. Szmigiero 2021-11-24KVM: PPC: Book3S HV: Don't always save PMU for guest capable of nestingNicholas Piggin