Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2977622pxb; Tue, 12 Jan 2021 03:24:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwEBK7tvK2i5LQSPRCRN7mRpB0XuLXVon8/0e7/zSu0TqrOvg5yYgAG/nqiOQCUY0Uo8+Un X-Received: by 2002:aa7:d750:: with SMTP id a16mr3042245eds.252.1610450649954; Tue, 12 Jan 2021 03:24:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610450649; cv=none; d=google.com; s=arc-20160816; b=GOZpAeRh8rwozIl1lsNj+tiEeho1sOsfTlf7sw8fkjx1IyI+XaK/yMtc7YVWZb8YCL F4m5ZQDaDowSVl/+LjZLFgLakmWMtwxtX7iJ/tiL48bivwNXsmLW3+FBL60O6TIBDtOB Yeo+mddN3AAOiDKth3R2WD8gxsi7RKSusWsvCDuOvFHBUtUoAhTl4WIAW67Y+ecEHGV6 Lw2fzyey2jWlYFkVgfwtrnMypifg3qDLdKl+AdbfuIfoIxGmDHwKMyup5hBn0IJxhLFW LOhslweo7N3GMTMXwItMy+XI8qxHissTmVqB/9bckFufoNlU6VCiFfAhGGmyJFJtkcXq 0VoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id :dkim-signature; bh=Yx9EFuHFi0fiBfDNCMYj/85UN42yeWmQPfOqfJfYs+c=; b=lPflNUuCbkxHpr4yv1dO18pFPK1njQhyK9AOwlChS1oiYtowOad3SrIwsQfB7a25k1 wYDJHEIAQCAvDoe3cvOo+f5pdPN5x7b4XYnt06jiD0d+jT+FLz8u5OXBCM3DmWKodCcK oBH++I4XY7syRd4y4oYg7s1H/tLVh1Yf/h5zXPKY4ES5/40uvYMKTh9vLGORHv53LdK5 A8gb1g4VpQaxN4IV1au7nGeNpllHl0l+6gjswaOGhKr38oBMTbRdgl5EZ+riUHo7EGOy MzYYaSThHTaExpHW5xtV5lSZX2wNc7j83k2y6CZRW6pKqZ9+IU7lsT+ysV83p2JcQNsG 6i/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=SSP1gFfF; 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 v21si1085704ejg.492.2021.01.12.03.23.46; Tue, 12 Jan 2021 03:24:09 -0800 (PST) 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=SSP1gFfF; 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 S1730871AbhALGgQ (ORCPT + 99 others); Tue, 12 Jan 2021 01:36:16 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:53155 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730221AbhALGgQ (ORCPT ); Tue, 12 Jan 2021 01:36:16 -0500 X-UUID: b1784a5e40854f6aaf6bca73675cb29a-20210112 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:MIME-Version:Content-Type:References:In-Reply-To:Date:CC:To:From:Subject:Message-ID; bh=Yx9EFuHFi0fiBfDNCMYj/85UN42yeWmQPfOqfJfYs+c=; b=SSP1gFfFSKk+Mp+sLB99pPPo/t48G4KCWwZ1/ppJviHInldBBKHxRZEgL2b1NxQ3F/elo1fRdj2AuZK/RIdTpPzZeuKCyYye/F61hGuZSrJljQ7b5jRfBq8j43xXaO8H48rLomvnvExWDJ5OLrxNTC44ky4YFilx3uk4y5MeJY0=; X-UUID: b1784a5e40854f6aaf6bca73675cb29a-20210112 Received: from mtkexhb02.mediatek.inc [(172.21.101.103)] by mailgw01.mediatek.com (envelope-from ) (Cellopoint E-mail Firewall v4.1.14 Build 0819 with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1207321009; Tue, 12 Jan 2021 14:35:29 +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.1497.2; Tue, 12 Jan 2021 14:35:27 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas07.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Tue, 12 Jan 2021 14:35:27 +0800 Message-ID: <1610433327.17820.5.camel@mtkswgap22> Subject: Re: [PATCH 1/2] scsi: ufs: Fix a possible NULL pointer issue From: Stanley Chu To: Can Guo CC: , , , , , , , , , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Bean Huo , Bart Van Assche , open list Date: Tue, 12 Jan 2021 14:35:27 +0800 In-Reply-To: <1609595975-12219-2-git-send-email-cang@codeaurora.org> References: <1609595975-12219-1-git-send-email-cang@codeaurora.org> <1609595975-12219-2-git-send-email-cang@codeaurora.org> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N Content-Transfer-Encoding: base64 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgQ2FuLA0KDQpPbiBTYXQsIDIwMjEtMDEtMDIgYXQgMDU6NTkgLTA4MDAsIENhbiBHdW8gd3Jv dGU6DQo+IER1cmluZyBzeXN0ZW0gcmVzdW1lL3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