usb: dwc3: pci: Fix reference count leak in dwc3_pci_resume_work
authorAditya Pakki <pakki001@umn.edu>
Sun, 14 Jun 2020 03:15:25 +0000 (22:15 -0500)
committerFelipe Balbi <balbi@kernel.org>
Wed, 24 Jun 2020 06:42:39 +0000 (09:42 +0300)
commit2655971ad4b34e97dd921df16bb0b08db9449df7
tree832dbdb943c3ebf19ba3837366008506c36c64c8
parent2587a029fa2a877d0a8dda955ef1b24c94b4bd0e
usb: dwc3: pci: Fix reference count leak in dwc3_pci_resume_work

dwc3_pci_resume_work() calls pm_runtime_get_sync() that increments
the reference counter. In case of failure, decrement the reference
before returning.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/dwc3/dwc3-pci.c