]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: cdns3: Fix runtime PM imbalance on error
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Mon, 12 Apr 2021 05:49:07 +0000 (13:49 +0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Thu, 15 Jul 2021 17:23:50 +0000 (19:23 +0200)
commit5ad35855d5166af580a56b8faf943ff7f12b605a
tree86f833648e083fd97a643072a4e2b5e430907b8b
parentd57910a95228b1c74238b7228d1162b645588022
usb: cdns3: Fix runtime PM imbalance on error

BugLink: https://bugs.launchpad.net/bugs/1934012
[ Upstream commit 07adc0225484fc199e3dc15ec889f75f498c4fca ]

When cdns3_gadget_start() fails, a pairing PM usage counter
decrement is needed to keep the counter balanced.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20210412054908.7975-1-dinghao.liu@zju.edu.cn
Signed-off-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/usb/cdns3/gadget.c