Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9171294pxu; Mon, 28 Dec 2020 08:20:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJysvOsOgdVe6/xw1OR0d16xoo49O8PVPBu0jteE+oqNiW2XnbwvYVs8KgaE5P8JGZ6So4/r X-Received: by 2002:a05:6402:17:: with SMTP id d23mr43003473edu.341.1609172431989; Mon, 28 Dec 2020 08:20:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609172431; cv=none; d=google.com; s=arc-20160816; b=CXBGdem8ExnLFfK56ycDuiFaALolXKgqAfWDAKQYPMzCRljKuaEwnO3deG9qmJKgph hNGfNSuFgDhnXcH/eeDFE9A1c7cqhO3wwgiRvG97uo7MgS4JYFFeZ6s5xYftyafJz5Jh 8kEuhco83KWjfsw/LtXeaj1gs3eYj3vNzeT9Jgb/yGVSJ/kWQ5jA4RrxVO/UnmL5AVVE +teQ7B+6hlBcsHzfmXbvAmaWpkTevQKXKfp00eHeyHVOZE2eAP4BhcqKZi0Qwm2iWA0J jmteVmSZ4bMt5G3G3W9jgTpTcSY6o1p9i+Zwv3ffU4XDhYiyRd/WhDH2CiLLrpBng89w 4T/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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=AfbFzOEG07E4n9XcZvVHE//aM4G1Vqx0aTYtX8v3Je0=; b=sOTbXzPQIT0G3LDKZbbJLi3vITNvtqVOLzwLxERXvOy/Dufp68RSdV0JD6ExtJ4SMF mzWYfFp1FOCLpQ1bqa2KFNYv95IBEabPaKdzmmodpQKgG46I2xQGt1phDuXNYF0R0NJS dQz/S0NIOaeiU9Bd7SfnJpiaI4NJjt2vHJrpx1AoqjkNV5hEG4pflCPauAqB7iEzFViW cW/epCPoEfrUDDbo/Sq2K2o+5iTXBusnhNBCxX/NuOXHL+jC0fkwLR6sAc/qg+4Ckh/d JQmFFTsaWzZOqUCUCOoVF7zpD3eSvxDHgYQ/nVdu7HAcApZHDnXeCwV/SoElcIuF0yw6 bbFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=t29B4oDc; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id by23si19671874ejb.165.2020.12.28.08.20.07; Mon, 28 Dec 2020 08:20:31 -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=@linuxfoundation.org header.s=korg header.b=t29B4oDc; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732666AbgL1QSd (ORCPT + 99 others); Mon, 28 Dec 2020 11:18:33 -0500 Received: from mail.kernel.org ([198.145.29.99]:43604 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732709AbgL1NPh (ORCPT ); Mon, 28 Dec 2020 08:15:37 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1F9C32076D; Mon, 28 Dec 2020 13:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161321; bh=sGXZ3I6qiui6Kj2Gy9swHJhCbRugfhmlmZHm86NumJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=t29B4oDcZ8YcXXtMLLS3XIDa6mUD1SenInugivOvFnmjJ9h4REpk+HuCLPmu3PZVR rFX6vB/CAnZaDXARit06XwvQEBJqUMmApWtw+gbUBLHTHWqcKzwiHoOuhna+GqVXJG fcdQjCTFMfe5lB4mXWiSV3GtiBW2BchL7aM0jRbY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jack Wang , Zhang Qilong , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.14 145/242] scsi: pm80xx: Fix error return in pm8001_pci_probe() Date: Mon, 28 Dec 2020 13:49:10 +0100 Message-Id: <20201228124911.842957287@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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: Zhang Qilong [ Upstream commit 97031ccffa4f62728602bfea8439dd045cd3aeb2 ] The driver did not return an error in the case where pm8001_configure_phy_settings() failed. Use rc to store the return value of pm8001_configure_phy_settings(). Link: https://lore.kernel.org/r/20201205115551.2079471-1-zhangqilong3@huawei.com Fixes: 279094079a44 ("[SCSI] pm80xx: Phy settings support for motherboard controller.") Acked-by: Jack Wang Signed-off-by: Zhang Qilong Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/pm8001/pm8001_init.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/pm8001/pm8001_init.c b/drivers/scsi/pm8001/pm8001_init.c index 0e013f76b582e..30e49b4acaeaf 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -1054,7 +1054,8 @@ static int pm8001_pci_probe(struct pci_dev *pdev, pm8001_init_sas_add(pm8001_ha); /* phy setting support for motherboard controller */ - if (pm8001_configure_phy_settings(pm8001_ha)) + rc = pm8001_configure_phy_settings(pm8001_ha); + if (rc) goto err_out_shost; pm8001_post_sas_ha_init(shost, chip); -- 2.27.0