Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2516733ybg; Fri, 31 Jul 2020 02:00:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+uTsYxZoaP/H6HAendd6DuMGJJh2EasLD9iS8onCfwqUddHBW61nWBXDaTJ6dUuFxowPZ X-Received: by 2002:aa7:cd07:: with SMTP id b7mr2986941edw.172.1596186052344; Fri, 31 Jul 2020 02:00:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596186052; cv=none; d=google.com; s=arc-20160816; b=AMYEVTLC768frI6F+hKt9L934RCKqFVm1SmPWwf4Aq8buTkrjiROz+0jF9xLRpyUKW wC7J0JfA+DoS7l3ks5P89M0wFojBxtSt74qYqmcNEq6/giAKpjRAK95D9je98kiUHMyj Bj5CYL+ckbX8s7Fh6za21gQaIwu1yAc47GTIWHGvmZ6cq1i4a2Fa06QmGbMDMTJ+fRLu MPXxDPMhHS5Q0FoAj7IaEotU93YS90WrIZu51Nhzb8Htd0TAZ4RaeYqkvBGH/BCybkXW vOXxKdt9eM8zY3FvwUjhIPpuWGpPDXUQKyjCb8kxCxvfyBJuAfqOM93FiXpLLH50i96T 447A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=NjNs/L/PQBspTHCRKxQtG3j74BSnJbhVaOVg+dzczjA=; b=WAQfPnhr7/FmfsuTjBOdzBkdpPqbaA2FAuesUkvOc8+Snc7ofQsVfzf8Y/pyPz9d7N rPqSBVKa/cEz7j48wLdNFOhHY6u4aKsVWJsAXwegWwzvLX35QuAbk6XuuFb7uARQcbhA Kgr9lQKkrmrcmW70vf7m93WndyywUPD5xasT8piVNwq/iFEOimVcnFM7AOPQ35DZ0Ubo Y2gN1NQWn0b0jfeFGEiSSmY+YADrQRRIy9ftj91jNGV8UDX/y9kK0Vsq46guVvp2f4XX vgcDivjerWhzmn35HBahTEs6iAqT7CYj7Ba+4GAuQ7fnmakqXZz+vZADJ1cjAYzUZYA0 YCew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=uMdRaMlk; 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 c11si4937956edq.178.2020.07.31.02.00.29; Fri, 31 Jul 2020 02:00:52 -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=uMdRaMlk; 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 S1731834AbgGaI6P (ORCPT + 99 others); Fri, 31 Jul 2020 04:58:15 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:11742 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1728437AbgGaI6O (ORCPT ); Fri, 31 Jul 2020 04:58:14 -0400 X-UUID: 82b739de27a3420592e9259af2d0299e-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:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=NjNs/L/PQBspTHCRKxQtG3j74BSnJbhVaOVg+dzczjA=; b=uMdRaMlke+fLMUQG2Wr6NqndkWOmlv4NqnzDlpudBAr9LW6gXf/TPIBoytXigENMfaiPgQcdpRKs9C9SCIVXtSwTkbJHVGlXzzTpy3gSsZsPwfz6PzCp26WECpmDQEnABpDZnoYTzAhW7bd8jvM4nWKhGqClsBpG7nfecmB/47w=; X-UUID: 82b739de27a3420592e9259af2d0299e-20200731 Received: from mtkcas08.mediatek.inc [(172.21.101.126)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1549384507; Fri, 31 Jul 2020 16:58:07 +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 16:58:03 +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 16:58:04 +0800 From: Macpaul Lin To: Chunfeng Yun , Eddie Hung , Greg Kroah-Hartman , Matthias Brugger , , , , CC: Mediatek WSD Upstream , Macpaul Lin , Macpaul Lin , Subject: [PATCH v2] usb: mtu3: fix panic in mtu3_gadget_disconnect() Date: Fri, 31 Jul 2020 16:57:58 +0800 Message-ID: <1596185878-24360-1-git-send-email-macpaul.lin@mediatek.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1596177366-12029-1-git-send-email-macpaul.lin@mediatek.com> References: <1596177366-12029-1-git-send-email-macpaul.lin@mediatek.com> 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 DQphbHJlYWR5IGFzc2lnbmVkIE5VTEwgdG8gbXR1LT5nYWRnZXRfZHJpdmVyIGR1cmluZyBtdH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