Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9181327pxu; Mon, 28 Dec 2020 08:36:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1GwacBD0vYqoVKo9cpEJmblFhtniKfBJd15zN9EFhqJHW2MCVPiQK7qWNLh1BMSY2aXLA X-Received: by 2002:a17:906:f85:: with SMTP id q5mr42933284ejj.105.1609173369875; Mon, 28 Dec 2020 08:36:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609173369; cv=none; d=google.com; s=arc-20160816; b=Gp7jo4BkA/GTGPbbjN1t5JzIiRys2oGC5rB9qnNEbbn+uptJHFRmuLQwl0wR90Qj4O e6pmpK1CG9CPTwJpHjPrhgtv6JWt8qpCI7F2CLeN/hV8x8soSN9qzh6mDpzxKG9kq2M8 fy36YYHWYjgeXn25076Y9HBDab91W68UScMwqoLLrppc25rN9bIyIRO8q0SuoWSXxSVv gPFXpWRLMKaeTVUPdUBmZk8IKAFaqgCS4FC3R8fLFE7ptuZm19J0AaEvn/psrpRJTvCO 3ndmW0nsdH7QZcscSyWxVOTnDMjn+9Qvgyz2Sw+u1K69aHr55vhWBhwG8xE4B0+q+3M9 YQgA== 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=ggmQvTxRj4e4oFapqmjSuaZOvA+o2s902v1ahbtKlAE=; b=T24I0iDiTIXfe8sn3GbCSvbfpJJ8S8+0ICDkFmedgzErIZhCwJMfrZ5XziNig63fv4 eonSzfIZxW4mqz1ve8jUjFrftzxM0FH0ls277p3XAOoKYoM9R80ujNFc7b2ofQW5NFRL 5JhCp7ZI8uoiQ3KafO1HGlVAfnL8LK1VgC5sUZkIpJd+/nX1KLdwt2a/uPhJaqNyUExg gS5KwdwEZsyLkVqMKLC8X9GksXsTB2C1ZA7bW3A111k2x/gqUu+5TgmiFYmSumsmtPDJ AboeAOzuWk+xp7KLm2EKeHeU+eaW5hoieuqvFHAeVg2DEgniE2hZPcNZ7JG/itHgm1Wh FPwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=MQvuy2wI; 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 dj1si19821617edb.346.2020.12.28.08.35.47; Mon, 28 Dec 2020 08:36: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=@linuxfoundation.org header.s=korg header.b=MQvuy2wI; 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 S2634116AbgL1Qdl (ORCPT + 99 others); Mon, 28 Dec 2020 11:33:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:59986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730283AbgL1NDr (ORCPT ); Mon, 28 Dec 2020 08:03:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id D2BE522AAA; Mon, 28 Dec 2020 13:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160587; bh=+4Mc8bVvy2qiVLVtZbtfDXNE04XdIv0Q8Yc2ezuleSE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MQvuy2wIPL/mmvTEtkRNMnLTgSIL91yPV3Qkxkku5e2oq6j+dmKUe1W2shWTKZTpv lBukKzbnW2jKpoeqnsGFkrbzyxKMCir5XY/kvWEGQtrkRzCA9lYvgESNsCNin5IGdf s5tTFyz6vaj9RjG5DPmmzlcAW8oQUS8oLfthSvE0= 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.9 102/175] scsi: pm80xx: Fix error return in pm8001_pci_probe() Date: Mon, 28 Dec 2020 13:49:15 +0100 Message-Id: <20201228124858.191138621@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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 9fc675f57e336..f54115d74f519 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -1061,7 +1061,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