Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp8735530ybl; Thu, 16 Jan 2020 23:44:48 -0800 (PST) X-Received: by 2002:a9d:6c52:: with SMTP id g18mr5264795otq.356.1579247057306; Thu, 16 Jan 2020 23:44:17 -0800 (PST) X-Google-Smtp-Source: APXvYqyrFDCjC057r/V+Q4Nin+6RTP99isM9u3pT38kLNAbbUiduXshtmapsk4rfVJCXq1R8u7O6 X-Received: by 2002:a9d:6c52:: with SMTP id g18mr5264749otq.356.1579247056106; Thu, 16 Jan 2020 23:44:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579247056; cv=none; d=google.com; s=arc-20160816; b=uWT7hmJeNDLvweGfivL0plNbh9tbYUBMrxhvefXsfHViwr5/hlqdZZY4tqe6d+7l6b rIyxxG2ubfIXAy1dKEX3O7qZt9JfAJUun4y/TXDilnHJD8tocmVqo9LaUeBKu7P4IkFC X1109piT7kvpxqt8kKJqryH9TeQ8o4DAtgHsaD/Qy7Um6rFja/CAY+6vCgGulgi5oUAl B5UPgDsYBPLj+BNuv1NLPwiyN+OtqNTKw1Oq3MvSXIgHyAR9mIo+qW2M9rTxdJBZa3ij oE2vnWeG1HRhKAxb76gmGSloSZ6g+b5SRxAMhQr9X67fE8oFiMSyr7hPKZ6yultvyeZ3 XD0w== 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=XlVHRJUiQa0Jm/lTprpguXiXjS3b7Bht7uRo2za199k=; b=d4XydPCRG612Vck3o/r0bNiZwkNmqKPZDYmzU8spk6wdaaB1Nfyrc+J8rc1RxDmK8x poSaU6/3ycecHMeeu6MeKS4iEJ3STzWCJj41QX2QsLyseVlHiWfsTI4l55gqIJ4hI4ja UDuj8IjaHnIOnfz3aYvb0loT7c3nIyb93L5Ey9dRmzwPnG63jA0rc4ggSuvvzLJNn0Xy ZaAyxCnWQ9RwBxYF9qUEkX/o7zWbJCrA5LKs15ZQBYkT/0hlP6B0uaULU5DJCQEP5fmu 8GUeur0zpybCTXddNc/MSq0LuwkRntxb5ICz8ndP3P/FobeTLGmDQrCSUQ7sOWRlr7wL OXzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=izdTNWFq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id k21si14060682otr.1.2020.01.16.23.43.53; Thu, 16 Jan 2020 23:44:16 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=izdTNWFq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729238AbgAQHmN (ORCPT + 99 others); Fri, 17 Jan 2020 02:42:13 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:42877 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1729159AbgAQHmN (ORCPT ); Fri, 17 Jan 2020 02:42:13 -0500 X-UUID: 91eeb4d187c7412cb5fc19a8ebfeeb86-20200117 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=XlVHRJUiQa0Jm/lTprpguXiXjS3b7Bht7uRo2za199k=; b=izdTNWFqdjMNAZtC4TMrjRJqR7uydOUzTwPTMWwgbMNFRRdhKsruhxQ8XqwdwQ4H8QCQqE5VeuCoCE3HFk+Ph51sqchHrDhIXo1LRH24121x0aoe/J6YDu29INUT94yIJAtVCrgS7TCTgU4DcYzk5IvilT4rA7hFFswPLfzAvHA=; X-UUID: 91eeb4d187c7412cb5fc19a8ebfeeb86-20200117 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 17940661; Fri, 17 Jan 2020 15:42:06 +0800 Received: from mtkcas07.mediatek.inc (172.21.101.84) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 17 Jan 2020 15:41:33 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Fri, 17 Jan 2020 15:41:10 +0800 From: Macpaul Lin To: Mathias Nyman , Greg Kroah-Hartman , Matthias Brugger , , , , , Chunfeng Yun CC: Mediatek WSD Upstream , Macpaul Lin , Sriharsha Allenki Subject: [PATCH] xhci-mtk: Fix NULL pointer dereference with xhci_irq() for shared_hcd Date: Fri, 17 Jan 2020 15:41:50 +0800 Message-ID: <1579246910-22736-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 QWNjb3JkaW5nIHRvIE5VTEwgcG9pbnRlciBmaXg6IGh0dHBzOi8vdGlueXVybC5jb20vdXFmdDVy YQ0KeGhjaTogRml4IE5VTEwgcG9pbnRlciBkZXJlZmVyZW5jZSB3aXRoIHhoY2l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