Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1008292pxb; Fri, 21 Jan 2022 08:02:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy1LDfUpiP2zFLPu+KoJ91iRXypHj6/k+6hTP9j5KLWpxXFVDKmtD8vaoMLFYgt1bIK2wP X-Received: by 2002:a17:90a:8807:: with SMTP id s7mr1345841pjn.223.1642780941760; Fri, 21 Jan 2022 08:02:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642780941; cv=none; d=google.com; s=arc-20160816; b=LtfoLsJIdTRovR5bi0SF8JvvejyOjadWNsNHpXQzOfJuLy/vxLJBm9KCYqvQq6ShMe CZeyumPNDa6QyaUvO/8VITLgO2B6Z5d8QnF1oxGeI1xXAc5Rgx1yNW8ITPzBlkh8ChpY M3gGdImj7gzY/hT5N/56+HVD/8kFazKqMcaeZycND1BCrTaLXSW/iDB5ZCib/DlWqgTs U9FKsb5E3lc0Ob8WClHH66umBdW85zKSBNnJntF1F6fm93w9DITURVOYIUpgVPKCFhIa pAbfKf8FQV2ULckqqGvQ7UEHfWYZLHYPeRM/8uZxK2X/mNj//8/4oh8DHvUb+JSp1DGS h5/A== 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:message-id:date:subject:cc:to:from :dkim-signature; bh=H/cAXg9i+HBl0Bby3Ibthhy7WNclNRAVPonQ55u3FwA=; b=NuKoRm6zYMOVZPcjKc4AGSU+2fiqpI5d07SuJQ+3J61B0GIAEo+1WZZIYFY2Nd2RHE qNEfh7ngBF8f8GFtrfOuqUs4p4mTZYBgQdZS2AJxJ7Vm5+3MUlSpG9CPAirrmcOJd7uY DGdEs0pCh/v+CEA8jI7SeFCM+a1mllI+YTo7tOqsJG0LB99UyxoPPZhdj+tTNReuTRG2 bgDf5adQC6IlGIFnztg7II/5Vk/5tstSMx/rhEThrue5gj8fVuKsLGIsL/zuiWM+Plag g8xjo3i/X0GbTB1zxli3ynq1LRcwS0HMkjvLnjeG4Qx1YCZkVc8dq33CykwLeNVimuM7 Nyvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2021-07-09 header.b=XrkBl4Ca; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf12si6138529plb.545.2022.01.21.08.02.08; Fri, 21 Jan 2022 08:02:21 -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=@oracle.com header.s=corp-2021-07-09 header.b=XrkBl4Ca; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351509AbiASEHS (ORCPT + 99 others); Tue, 18 Jan 2022 23:07:18 -0500 Received: from mx0b-00069f02.pphosted.com ([205.220.177.32]:1550 "EHLO mx0b-00069f02.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351460AbiASEHA (ORCPT ); Tue, 18 Jan 2022 23:07:00 -0500 Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 20INxWLW011214; Wed, 19 Jan 2022 04:06:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2021-07-09; bh=H/cAXg9i+HBl0Bby3Ibthhy7WNclNRAVPonQ55u3FwA=; b=XrkBl4CazON7Z4h5mDCevYug26hzUmOkL5mbnb+B+zPz7dbAAf8izoo9o0Yfxcsi9EFa ra6+NlXu54eJeTHLVZBzxi1k25Bws5Pl9kExvWkEzXygOsST2nLr/nYt33Njtc6S/vw+ FbVH2A4b0R8d7r4GvThe125jh7SucHZrlz3xHkg1WNFmAgC6/CJUTb/2jbGLANy5Ozv/ PjCEp4Mi/ha2UJVMVhN5bDzaX6NSOIZOiesGpe2GpeyixjbKe2r78ZLaXwNo5wnWg8lI GW5ojDGSlPHc1PTe5e0WrkYpaSo4jcc3eCOFx3OkiCsJq5phegqdm9GfoQiLV4UWG/Cw BA== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3dnbrnuuek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jan 2022 04:06:22 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 20J42AnZ091612; Wed, 19 Jan 2022 04:06:21 GMT Received: from pps.reinject (localhost [127.0.0.1]) by userp3020.oracle.com with ESMTP id 3dkqqpnr97-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 19 Jan 2022 04:06:21 +0000 Received: from userp3020.oracle.com (userp3020.oracle.com [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 20J46HQ5110383; Wed, 19 Jan 2022 04:06:20 GMT Received: from ca-mkp.mkp.ca.oracle.com (ca-mkp.ca.oracle.com [10.156.108.201]) by userp3020.oracle.com with ESMTP id 3dkqqpnr68-4; Wed, 19 Jan 2022 04:06:20 +0000 From: "Martin K. Petersen" To: jejb@linux.ibm.com, Jiasheng Jiang , yokota@netlab.is.tsukuba.ac.jp Cc: "Martin K . Petersen" , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Subject: Re: [PATCH] scsi: nsp_cs: Check of ioremap return value Date: Tue, 18 Jan 2022 23:06:12 -0500 Message-Id: <164256513503.31841.14055206238562894525.b4-ty@oracle.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211230021137.1823352-1-jiasheng@iscas.ac.cn> References: <20211230021137.1823352-1-jiasheng@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: Fx2fiF4jQwsCq-XSdKEM-xYYqSI95i7q X-Proofpoint-ORIG-GUID: Fx2fiF4jQwsCq-XSdKEM-xYYqSI95i7q Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 30 Dec 2021 10:11:37 +0800, Jiasheng Jiang wrote: > As the possible failure of the ioremap(), the 'data->MmioAddress' could > be NULL. > Therefore it should be better to check it in order to transfer the > error. > > Applied to 5.17/scsi-queue, thanks! [1/1] scsi: nsp_cs: Check of ioremap return value https://git.kernel.org/mkp/scsi/c/2576e153cd98 -- Martin K. Petersen Oracle Linux Engineering