diff options
| author | Niklas Schnelle <[email protected]> | 2025-04-30 13:26:19 +0000 |
|---|---|---|
| committer | Heiko Carstens <[email protected]> | 2025-05-07 11:35:05 +0000 |
| commit | 05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1 (patch) | |
| tree | c6423839cb1878ed2415ed167e5e5f156757da76 /tools/testing/selftests/drivers/net/lib/py/load.py | |
| parent | s390/pci: Fix missing check for zpci_create_device() error return (diff) | |
| download | kernel-05a2538f2b48500cf4e8a0a0ce76623cc5bafcf1.tar.gz kernel-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: [email protected]
Fixes: bcb5d6c76903 ("s390/pci: introduce lock to synchronize state of zpci_dev's")
Signed-off-by: Niklas Schnelle <[email protected]>
Reviewed-by: Gerd Bayer <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Diffstat (limited to 'tools/testing/selftests/drivers/net/lib/py/load.py')
0 files changed, 0 insertions, 0 deletions
