Re: [PATCH] usb: dwc3: pci: Fix reference count leak in dwc3_pci_resume_work

2020-06-14 Thread Sergei Shtylyov
Hello! On 14.06.2020 6:15, Aditya Pakki wrote: dwc3_pci_resume_work() calls pm_runtime_get_sync() that increments the reference counter. In case of failure, decrement the reference count and return the error. In this case you still return nothing. Signed-off-by: Aditya Pakki --- driv

[PATCH] usb: dwc3: pci: Fix reference count leak in dwc3_pci_resume_work

2020-06-13 Thread Aditya Pakki
dwc3_pci_resume_work() calls pm_runtime_get_sync() that increments the reference counter. In case of failure, decrement the reference count and return the error. Signed-off-by: Aditya Pakki --- drivers/usb/dwc3/dwc3-pci.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dri