Re: [PATCH] pci/hotplug: fix potential memory leak in disable_slot()

2021-03-22 Thread Niklas Schnelle
On 21/03/2021 16:51, Zhiqiang Liu wrote: In disable_slot(), if we obtain desired PCI device successfully by calling pci_get_slot(), we should call pci_dev_put() to release its reference. Thanks for the patch! This should however be fixed independently by commit 0b13525c20fe ("s390/pci:

[PATCH] pci/hotplug: fix potential memory leak in disable_slot()

2021-03-21 Thread Zhiqiang Liu
In disable_slot(), if we obtain desired PCI device successfully by calling pci_get_slot(), we should call pci_dev_put() to release its reference. Signed-off-by: Zhiqiang Liu Signed-off-by: Feilong Lin --- drivers/pci/hotplug/s390_pci_hpc.c | 6 -- 1 file changed, 4 insertions(+), 2