]> git.baikalelectronics.ru Git - kernel.git/commit
usb: cdns3: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Thu, 21 May 2020 07:39:19 +0000 (15:39 +0800)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:43 +0000 (11:09 +0300)
commitb07bc7eb4a2c413b7e8d3483588c5ca9faf08b9c
treee32de46ca207457f0742252ad1f83496d3ebc6af
parent3c443d36e3c3232b0ea70bd0bbfa9837556da849
usb: cdns3: Fix runtime PM imbalance on error

pm_runtime_get_sync() increments the runtime PM usage counter even
when it returns an error code. Thus a pairing decrement is needed on
the error handling path to keep the counter balanced.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/cdns3/cdns3-ti.c