Skip to contentSkip to conversation

patch "usb: xhci-mtk: fix leakage of shared hcd when fail to set wakeup irq" added to usb-next

PATCH [email protected] 1 participant 1 message Nov 29, 2022

Subsystems (5)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

usb: xhci-mtk: fix leakage of shared hcd when fail to set wakeup irq

to my usb git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git
in the usb-next branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will also be merged in the next major kernel release during the merge window.

If you have any questions about this process, please let me know.

From 03a88b0bafbe3f548729d970d8366f48718c9b19 Mon Sep 17 00:00:00 2001
From: Chunfeng Yun <[email protected]>
Date: Mon, 28 Nov 2022 14:33:37 +0800
Subject: usb: xhci-mtk: fix leakage of shared hcd when fail to set wakeup irq

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")
---
 drivers/usb/host/xhci-mtk.c | 1 -
 1 file changed, 1 deletion(-)
drivers/usb/host/xhci-mtk.c +0 -1
index cff3c4aea036..f7cbb08fc506 100644
@@ -646,7 +646,6 @@ static int xhci_mtk_probe(struct platform_device *pdev)
 
 dealloc_usb3_hcd:
 	usb_remove_hcd(xhci->shared_hcd);
-	xhci->shared_hcd = NULL;
 
 put_usb3_hcd:
 	usb_put_hcd(xhci->shared_hcd);
Signature · 1 line
2.38.1