Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp288992pxx; Wed, 28 Oct 2020 05:06:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyH/nkDeadyodIObMm5SGWfNWL/s/N873pJTcMOpXN21h1JjE9fqjNI+UOa0Ep6DH6utwxk X-Received: by 2002:a17:906:c2d8:: with SMTP id ch24mr6972524ejb.239.1603886806782; Wed, 28 Oct 2020 05:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603886806; cv=none; d=google.com; s=arc-20160816; b=FqlHdzJA04aow/H0pF3oDW5yDPFiWGf+09jT4JfO0layWbrS3vaupXOq7diaMNRkf3 9BvVHg4HPkd5aU1gzPM6bXALgNjJmMMszwlCA2Ru27iIXnyTSyxORHTtrquX5YMfojYp PAhLr3cg1iN5lno3055kVEvdGmUShrtzV5LM2PuJPhr9b3kX3QnYBc63a5xFZcyUZb5J UHbZti7BqueYwbCp5edzOeXv83qz7TFkdlVW0YL/pasln59RO0oaw68A8qxL4fIyKFqZ qIj4aOIVK/UON9Y8QXQgp+HW/EJOWgfhqloWKmcDQ+X+rHmN/O1vkV0Yw/HuEcsdVcas soEA== 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=6S/7a6ZlHncPKYTit2mR+n+b3IRLsPsV1qgGS/3OJz8=; b=sldPWIfUAAkiPUGoNBVVS8GRhegSHUBSi6N5upF5pvOgoHMpZDnyss2n6AQm8Mm8QU DyvTJWfLuPKGq+tasBtwPNnJcslnUH2vm09X1TFAJnpNuTriEubeHcATFol1k0XV8CU6 DvoQr3kProiACqUZjK6dKzFLHLtkpIuIcUCMQpBddA9Ecal2+Dw1SPtK+s1VmMAElvo8 WYx/Jw93P+rsu7TOAqwFfFYNBb3QPEAJnNXcCtnlOC98aq3k3eWnpyOVfkLoABY+FpIl hcGWTNgEKzu0+XDayR0+qu87FeeIi7DevNSGZv01YQqahCRrR8b/g9FBWxRw/Ypfs6mZ cO5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gSHr0eC9; 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 p90si2749641edd.284.2020.10.28.05.06.23; Wed, 28 Oct 2020 05:06:46 -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=gSHr0eC9; 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 S1795328AbgJ0PPL (ORCPT + 99 others); Tue, 27 Oct 2020 11:15:11 -0400 Received: from mail.kernel.org ([198.145.29.99]:45260 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S368015AbgJ0PJq (ORCPT ); Tue, 27 Oct 2020 11:09: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 678D620657; Tue, 27 Oct 2020 15:09:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811386; bh=sJdj1y2IIrk/4e9GcM3TwcMPmA8GTSIhJ/jnAqLCPvg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gSHr0eC9KYSWkE/9066Rx7FpyNx8GLP48b38VJ53qx0WooGWO/JnCeqH3yXhqelwj 2688FMQJop9rxiKPhq4Y51p+GB9720ugNCFOYvtKRM2IKDSMu04h4MSdr+bUqIw/PK zqLZn1+I7G4RNa+ai+eJD/PouYSElvUP5z5xkJTE= 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.8 474/633] scsi: bfa: Fix error return in bfad_pci_init() Date: Tue, 27 Oct 2020 14:53:37 +0100 Message-Id: <20201027135544.974347007@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 bc5d84f87d8fc..440ef32be048f 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