Message ID | 1604642069-20961-1-git-send-email-macpaul.lin@mediatek.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=qhym=EM=lists.infradead.org=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BBFFF14B4 for <patchwork-linux-mediatek@patchwork.kernel.org>; Fri, 6 Nov 2020 05:55:03 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 16BA8206A1 for <patchwork-linux-mediatek@patchwork.kernel.org>; Fri, 6 Nov 2020 05:55:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DgNIS1KB"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="pQkH6esf" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 16BA8206A1 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wl2glubZ1h2zwdmt5G2KOTvXDTab5EFkkpytFPIKFXo=; b=DgNIS1KBhaHa0ySNG08bGGWMU UfheMRtHcPKL9bUwtwW9QNW0v1/efV57HRVlei3ELdEgtONQWjiew19SYg1xUKMlyzKMyA5iSENSE DGdfBLLeDbvaJIMEtK9YfSLUov0QrKqeR+kzhYR4G32/RSrjG+l4wioJnirkA7K5Q1sfrEQg6rOUO dKC6W+OobHC2tuXqoIy1k/DCK9AeMbI281+bgdgE1XvqfCvSSGJQYmJM6PJr+8AL2zAzMve+4/ul5 i5IdczF/KwpaBUTiHfogGgTvQVbMfFSZrOWIZZfDNE8p4ViJV3pxJ+TAIujjrrk1vV+jvzs4a0S9J fH4hBDpkA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kauiC-0008BO-9P; Fri, 06 Nov 2020 05:55:00 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kaui9-0008AM-GX; Fri, 06 Nov 2020 05:54:58 +0000 X-UUID: 9bfebf4e2b9f43a8b353f80d2bdc3af8-20201105 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=jrzc89JpNcNErmmlzzWp/qr11crPr2vGajZEAmBKLmI=; b=pQkH6esfRoBdxhywTXq7oyuHlRmFHtlnf7ME8WiUV+er3ve37r1iBaqm3dbZulWAOwvXdyWDNk5+YADYP0V6bmNIwirfQ4/8MvCgL1eXYIwOd7P+K5fFLz6ydi8bs9+X+NgR/tOV5CuBRwLkDl7eyOBqbGhOaRNu5FXmQLQkBEY=; X-UUID: 9bfebf4e2b9f43a8b353f80d2bdc3af8-20201105 Received: from mtkcas67.mediatek.inc [(172.29.193.45)] by mailgw02.mediatek.com (envelope-from <macpaul.lin@mediatek.com>) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1740271884; Thu, 05 Nov 2020 21:54:48 -0800 Received: from mtkmbs08n2.mediatek.inc (172.21.101.56) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 5 Nov 2020 21:54:46 -0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n2.mediatek.inc (172.21.101.56) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 6 Nov 2020 13:54:43 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by MTKCAS06.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 6 Nov 2020 13:54:41 +0800 From: Macpaul Lin <macpaul.lin@mediatek.com> To: Alan Stern <stern@rowland.harvard.edu>, Felipe Balbi <balbi@kernel.org>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Matthias Brugger <matthias.bgg@gmail.com>, Chunfeng Yun <chunfeng.yun@mediatek.com> Subject: [RESEND PATCH v4] usb: mtu3: fix panic in mtu3_gadget_stop() Date: Fri, 6 Nov 2020 13:54:29 +0800 Message-ID: <1604642069-20961-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1598539328-1976-1-git-send-email-macpaul.lin@mediatek.com> References: <1598539328-1976-1-git-send-email-macpaul.lin@mediatek.com> MIME-Version: 1.0 X-TM-SNTS-SMTP: 39034FCC61EDF9B6A654BEEF06F6764DB605319D12BBEBE5EA98C7A01A428BEF2000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201106_005457_776301_3A734C25 X-CRM114-Status: GOOD ( 15.32 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 MIME_BASE64_TEXT RAW: Message text disguised using base64 encoding -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <linux-mediatek.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mediatek/> List-Post: <mailto:linux-mediatek@lists.infradead.org> List-Help: <mailto:linux-mediatek-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mediatek>, <mailto:linux-mediatek-request@lists.infradead.org?subject=subscribe> Cc: linux-usb@vger.kernel.org, Mediatek WSD Upstream <wsd_upstream@mediatek.com>, Eddie Hung <eddie.hung@mediatek.com>, linux-kernel@vger.kernel.org, stable@vger.kernel.org, linux-mediatek@lists.infradead.org, Macpaul Lin <macpaul@gmail.com>, Macpaul Lin <macpaul.lin@mediatek.com>, linux-arm-kernel@lists.infradead.org, Ainge Hsu <ainge.hsu@mediatek.com> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "Linux-mediatek" <linux-mediatek-bounces@lists.infradead.org> Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org |
Series |
[RESEND,v4] usb: mtu3: fix panic in mtu3_gadget_stop()
|
expand
|
diff --git a/drivers/usb/mtu3/mtu3_gadget.c b/drivers/usb/mtu3/mtu3_gadget.c index 1de5c9a..1ab3d3a 100644 --- a/drivers/usb/mtu3/mtu3_gadget.c +++ b/drivers/usb/mtu3/mtu3_gadget.c @@ -564,6 +564,7 @@ static int mtu3_gadget_stop(struct usb_gadget *g) spin_unlock_irqrestore(&mtu->lock, flags); + synchronize_irq(mtu->irq); return 0; }