Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2464758ybg; Thu, 30 Jul 2020 23:36:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9q+62kyqzF+RPvtU3+BZ64Q7gaQFhKXFpjJ90rRP4dqDMJGBLl03AOdaUt7iCxDyiuCtu X-Received: by 2002:a17:906:55d7:: with SMTP id z23mr2513093ejp.115.1596177406508; Thu, 30 Jul 2020 23:36:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596177406; cv=none; d=google.com; s=arc-20160816; b=RizP9ck8BXrxsD4ThLZxyXNZEwrvdfY6SK1h4UcDkpbwNOytFEXlOWDKg60LaYV15J mw516SdxYnkmZlubHy2AnPn/0MQHKESuS8GagouAiOSYAxfaPXvQCxXZMQT9KFu4TRVq PgOZFdzYZnCGO5DOgJGdrn9fLNIb0S9CaWeYE1gRIqOrp1lL53GW1beN9u/LLLW6wvk8 +WMosvrNg+p08vDJc9xEm5xgwOPEaMpfUOqcxBd0E8XFrrVG/5rcJmTMG4LXDm+IKYyJ dnBbqw2SKgHXMHxmI+6Qpr91014Tv8nWjyjKe4Woq3vfc+P4Rm9lr2JFtrYCm2fddQDy H3Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=oCSPBwm1OG9nHt5f6BWa2OtMBUQFOcwvvqmT2nA/E1U=; b=zu7ICKd/ZEMbD6gNmsIDfo4fKy9gftvNOgpdr6WZFd6N3c28mLLUunA9822gXDSqJC GSKN91G4dA/tgNHsjt7z3TC2GSRxGXb9O483IplHhk6lb5lFd8nqBQngOd/lMnGDEcld lQJL2SvkKwYEyXEFE/+SECEA5cGIJpH8I2BkcBvLMG7Ezd5DnlYHHSYm91rOIgzggQlf 5JzIt9LArQrhwtz+WGh3nASGSduCTOO0c2PoLjj5UqZzXDClzkJwx5L5zxYGehlZAlEM 9jsc43axWw4fMnEZB/A46yGW3CeIxcXxNWj8rIUs4IfGmC3mvVIPYy8341weQWmpdXlx ygUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PPxTCoxd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n3si4444903edv.602.2020.07.30.23.36.22; Thu, 30 Jul 2020 23:36:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=PPxTCoxd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731420AbgGaGgQ (ORCPT + 99 others); Fri, 31 Jul 2020 02:36:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:20427 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1731224AbgGaGgO (ORCPT ); Fri, 31 Jul 2020 02:36:14 -0400 X-UUID: 80600fca466b4b81b487657ab0f366de-20200731 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:Message-ID:Date:Subject:CC:To:From; bh=oCSPBwm1OG9nHt5f6BWa2OtMBUQFOcwvvqmT2nA/E1U=; b=PPxTCoxddKLPAf5YDbExSlINVAHT8uY8vmO6u74ebqTU0XOC6q9JKSMh/lni/oYeWvnhh7MjB5ugDJmqgG4+NQVjaTyjkJuDBAQ10ikdlOJ8f9/QVw6ny3Ie+AWIcQ5nt2cHzMbaigIV9bwROQ41LD2u8icaZ0P1/yKMmfqBHw4=; X-UUID: 80600fca466b4b81b487657ab0f366de-20200731 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw02.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1770294931; Fri, 31 Jul 2020 14:36:09 +0800 Received: from MTKCAS06.mediatek.inc (172.21.101.30) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 31 Jul 2020 14:36:06 +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, 31 Jul 2020 14:36:06 +0800 From: Macpaul Lin To: Chunfeng Yun , Eddie Hung , Greg Kroah-Hartman , Matthias Brugger , , , , CC: Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin , Subject: [PATCH] usb: mtu3: fix panic in mtu3_gadget_disconnect() Date: Fri, 31 Jul 2020 14:36:06 +0800 Message-ID: <1596177366-12029-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhpcyBwYXRjaCBmaXhlcyBhIHBvc3NpYmxlIGlzc3VlIHdoZW4gbXR1M19nYWRnZXRfc3RvcCgp DQphbHJlYWR5IGFzc2lnbmVkIE5VTEwgdG8gbXR1LT5nYWRnZXRfZHJpdmVyIGR1cmluZyBtdHVf Z2FkZ2V0X2Rpc2Nvbm5lY3QoKS4NCg0KQmFja3RyYWNlOg0KWzxmZmZmZmY5MDA4MTYxOTc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