summaryrefslogtreecommitdiffstats
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorNiklas Schnelle <schnelle@linux.ibm.com>2025-04-30 15:26:19 +0200
committerHeiko Carstens <hca@linux.ibm.com>2025-05-07 13:35:05 +0200
commit05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1 (patch)
treec6423839cb1878ed2415ed167e5e5f156757da76 /scripts/generate_rust_analyzer.py
parent42420c50c68f3e95e90de2479464f420602229fc (diff)
downloadlinux-05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1.tar.gz
linux-05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1.tar.bz2
linux-05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1.zip
s390/pci: Fix duplicate pci_dev_put() in disable_slot() when PF has child VFs
With commit bcb5d6c76903 ("s390/pci: introduce lock to synchronize state of zpci_dev's") the code to ignore power off of a PF that has child VFs was changed from a direct return to a goto to the unlock and pci_dev_put() section. The change however left the existing pci_dev_put() untouched resulting in a doubple put. This can subsequently cause a use after free if the struct pci_dev is released in an unexpected state. Fix this by removing the extra pci_dev_put(). Cc: stable@vger.kernel.org Fixes: bcb5d6c76903 ("s390/pci: introduce lock to synchronize state of zpci_dev's") Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com> Reviewed-by: Gerd Bayer <gbayer@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions