Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1219250pxx; Tue, 27 Oct 2020 11:01:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv3Cc/dg07IBGzJXX0KSi9fBRD95c6Jdt4vz+7/Z9N+M128xmt/KEPV47/T/0zexW00F4T X-Received: by 2002:a17:906:4151:: with SMTP id l17mr3798969ejk.83.1603821708303; Tue, 27 Oct 2020 11:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603821708; cv=none; d=google.com; s=arc-20160816; b=yAFnFuICkxbDDhBUHG+6PjG6lwLPdPXY4UUutP1vOtwsb95ZczxwloMB3v8rh9T9Kq H11EHQW2wX527oeh5q5zuBHtqopwuiGCUM++nKuEvTZmOR2b9wWejcRaxn6bjnFZfSFP BVfl7/r/tg4SerVvxmc7mbST+4EVjm04skzaTtHrYeVny+ve2NkdM9o379PXxyge3xtz oTDGWb1pGARwC/BVdKlVahYjcurOikGgVMYkq+vQ96niqtkxeadwowj/hVajTav9CONS vr3LJV4FX3b5M/F6kg5+6pt+40wyLtU9dBilQJ7lNZZ+ascVAGodG3CW0BkCLajX1rC8 NGSQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=r4Je+705zIlcfGS15kwT7h4dIEX+ugK1RGmvOsvy0tc=; b=X1zhgSMu+VbjWyhLSO0KfgpvcZudLsU5FgYAZcy37LR2DkflC8eoZPKezvMgK3ov0u 5Cc6SfYxW1/zyFm9Bbd3mITgPvMnjkFMcOxcn1tnP/bkEN4DJ0GuLg2HO0izWLj6hxc2 fLbwiqEoqnzAkgKMJpLuR6CLlxJQEjJY4sjxYJkBzxs2On8Sn11T9WrMloDLfioiZqm+ xQ7QZXOGJoc+bigcKFfxYNzr+rzBroNKxDGWDpGtHRY8DoDwBcPPg/mt4xOLCNtx+89u 6P4JXKUfVfs9/GUZa3eNF9mWftZdRQxmFqHPwNEUiHeeD4nhNDazNKAyZMLxKUwNPExT A7bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=te9JIMKs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v22si1494131ejj.27.2020.10.27.11.01.25; Tue, 27 Oct 2020 11:01:48 -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=@kernel.org header.s=default header.b=te9JIMKs; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1820025AbgJ0RcL (ORCPT + 99 others); Tue, 27 Oct 2020 13:32:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:41218 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1762291AbgJ0Olq (ORCPT ); Tue, 27 Oct 2020 10:41:46 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2BA06206B2; Tue, 27 Oct 2020 14:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809705; bh=tC9peKfGXTrex7BCxMuGu53hB4t52oYA35XieGlzdLg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=te9JIMKsrbM5S29rNSzMntbY+n0cOAQnRluosrsMQPTQ+wGt8adQJY8sjhcJgj726 PcL/L/Zt9tbti5Z3P+Uh/lAnYTwxTGHXDQwHvjmzmJx+H77tFHvY00bOz/frch/WYU PfLOguAkwefh4ogEtP/vASi3EYhMdgyhl4Fp+WdA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jing Xiangfeng , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.4 291/408] scsi: bfa: Fix error return in bfad_pci_init() Date: Tue, 27 Oct 2020 14:53:49 +0100 Message-Id: <20201027135508.544244355@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jing Xiangfeng [ Upstream commit f0f6c3a4fcb80fcbcce4ff6739996dd98c228afd ] Fix to return error code -ENODEV from the error handling case instead of 0. Link: https://lore.kernel.org/r/20200925062423.161504-1-jingxiangfeng@huawei.com Fixes: 11ea3824140c ("scsi: bfa: fix calls to dma_set_mask_and_coherent()") Signed-off-by: Jing Xiangfeng Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/bfa/bfad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c index 2f9213b257a4a..93e4011809919 100644 --- a/drivers/scsi/bfa/bfad.c +++ b/drivers/scsi/bfa/bfad.c @@ -749,6 +749,7 @@ bfad_pci_init(struct pci_dev *pdev, struct bfad_s *bfad) if (bfad->pci_bar0_kva == NULL) { printk(KERN_ERR "Fail to map bar0\n"); + rc = -ENODEV; goto out_release_region; } -- 2.25.1