Re: [PATCH] s390/pci: Fix missing pci_dev_put() in zpci_report_status()
Farhan Ali <[email protected]>
| Newsgroups | org.kernel.vger.linux-s390,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On 8/18/2026 12:17 PM, Niklas Schnelle wrote: > In zpci_report_status() a reference to the struct pci_dev associated > with the struct zpci_dev being reported about is acquired using > pci_get_slot(). This reference needs to be dropped with pci_dev_put() > but this call is missing thus leaking the reference. On subsequent hot > unplug this will cause the struct pci_dev to not be released leaking > memory and potentially prevent reattach. > > Reviewed-by: Matthew Rosato<[email protected]> > Fixes: 4ec6054e7321 ("s390/pci: Report PCI error recovery results via SCLP") > Cc:[email protected] > Signed-off-by: Niklas Schnelle<[email protected]> > --- > arch/s390/pci/pci_report.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Farhan Ali<[email protected]>