Hi Greg, Hi Sasha,
Please take this backport of the upstream commit a46044a92add ("s390/pci: fix zpci_zdev_put() on reserve") for the v5.14 stable series. After adding the prerequisite commit 02368b7cf6c7 ("s390/pci: cleanup resources only if necessary") both it and the original upstream patch apply cleanly. I have also tested them with the original problem situation on top of v5.14.14 and confirmed the issue to be fixed.
Thanks, Niklas
Changes since v2: - Correct upstream commit hash
Niklas Schnelle (2): s390/pci: cleanup resources only if necessary s390/pci: fix zpci_zdev_put() on reserve
arch/s390/include/asm/pci.h | 2 ++ arch/s390/pci/pci.c | 48 ++++++++++++++++++++++++++---- arch/s390/pci/pci_event.c | 4 +-- drivers/pci/hotplug/s390_pci_hpc.c | 9 +----- 4 files changed, 47 insertions(+), 16 deletions(-)