diff options
author | Chunfeng Yun <chunfeng.yun@mediatek.com> | 2022-11-28 14:33:37 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-12-31 13:33:09 +0100 |
commit | c8e7463844888dc8344bbb9cbad88cdce9cb8077 (patch) | |
tree | 08cc54f8c95400d08d7a3776d05bbe18d2682cce | |
parent | dfbbc47d8672a73679311df5acbeae6a6ff23dee (diff) | |
download | linux-stable-c8e7463844888dc8344bbb9cbad88cdce9cb8077.tar.gz linux-stable-c8e7463844888dc8344bbb9cbad88cdce9cb8077.tar.bz2 linux-stable-c8e7463844888dc8344bbb9cbad88cdce9cb8077.zip |
usb: xhci-mtk: fix leakage of shared hcd when fail to set wakeup irq
commit 03a88b0bafbe3f548729d970d8366f48718c9b19 upstream.
Can not set the @shared_hcd to NULL before decrease the usage count
by usb_put_hcd(), this will cause the shared hcd not released.
Fixes: 04284eb74e0c ("usb: xhci-mtk: add support runtime PM")
Cc: <stable@vger.kernel.org>
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link: https://lore.kernel.org/r/20221128063337.18124-1-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/host/xhci-mtk.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 01705e559c42..c61fc19ef115 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -639,7 +639,6 @@ static int xhci_mtk_probe(struct platform_device *pdev) dealloc_usb3_hcd: usb_remove_hcd(xhci->shared_hcd); - xhci->shared_hcd = NULL; dealloc_usb2_hcd: usb_remove_hcd(hcd); |