Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9086687pxu; Mon, 28 Dec 2020 06:18:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwkpHqkIZpdVIkzKyqJ1RcoDaHQ4Jv16FhkeKK3BPCRpfFkC87qypw5KTcW4W64f8nkfvPb X-Received: by 2002:a50:d757:: with SMTP id i23mr42625898edj.116.1609165112002; Mon, 28 Dec 2020 06:18:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609165111; cv=none; d=google.com; s=arc-20160816; b=nOPeD7hCtYgaY4gPV65gofP+RM/LBUV02xHZuU+e4G0DCJ709xHmi5fTP4Phc140N9 kQYMOq4NYcNsYvG9XPf3Dq9qv1/yeJPL4+4XY61qbqSYL7mj/S+a8bREtVeoqMYvGeYu i+iFTlHHcwjkd/VFbW59coM/2MTaLT5qDdqBo5jBH6RiZomhwjrZoN9JdI8rQezCRrC0 mkd21R6K9bnvcfG35F0eOW4OlUcP1AFd2xaiyeXXcGyaxTKI0fy/m2rLfm3Vm/aaqH3s 3K2aMatEURvt3l8DP5azeX4Hr47++niJVXW6OuAI/t9OLnS7Lgg70YAYtxMm4TWumtSZ gFWQ== 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=LJgkBlJ9IWFVjSDnxMVOhcaB8ovsQE4Z1dRRG+LY3pE=; b=IyNmSuyQE0jv94MvbvRtUJd32oPziNwGho2WN3CKJJ/MbZvJOaOnQyN8EBDhqmnp2v 7Ov02uPAeFu2cSDwL/RsNpe0geyWO0ZwA/xuXjdTjze9mrnVQSCHZFFU0pmJpOak9PNs FtG/qHp5aTQncCkjPSwM/8tYYBIPICBAJxGQF+1cYsA6uckPEvZf3lhQS2YiRDB1ZFw+ aoAbCXZS8c+Zf8u2tZrG5zpAcSpKggKcxb84orms58ARgfL5ckWjmVm5whzVkvX0MJgJ HwzwLFSzmfaOkfzxltz/2Z2Of630VW9ZyBafDS9TZTJDubjabWfaKAa3f2aDPQRujaMl OB3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=a8CmIHZE; 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 u26si10563585eds.149.2020.12.28.06.18.09; Mon, 28 Dec 2020 06:18: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=a8CmIHZE; 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 S2441215AbgL1OQg (ORCPT + 99 others); Mon, 28 Dec 2020 09:16:36 -0500 Received: from mail.kernel.org ([198.145.29.99]:50406 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2440838AbgL1OQF (ORCPT ); Mon, 28 Dec 2020 09:16:05 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 5E71F22B2B; Mon, 28 Dec 2020 14:15:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164949; bh=86yJcSwYTKaaW/g5i0hJCTrJclIW8UcXEP8Gby8i7p4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a8CmIHZEgBI8r/S6fZomJqCV+7M7bNfo0oqyzb6y8E7c27fsmbtHUedYJ+JslPboq ggp4OgN8KHNyrJmktiAqrdCEGzw9rNAnp1fFBbyteaYDN1I7fy5M6nyf1Fe3mWRx/j Wcq+Y0st9/5mst6KJfhTMlYbHyDKYs+MBYBWbaH0= 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 5.10 357/717] scsi: pm80xx: Fix error return in pm8001_pci_probe() Date: Mon, 28 Dec 2020 13:45:55 +0100 Message-Id: <20201228125038.115356499@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 3cf3e58b69799..2025361b36e96 100644 --- a/drivers/scsi/pm8001/pm8001_init.c +++ b/drivers/scsi/pm8001/pm8001_init.c @@ -1131,7 +1131,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