Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4827375ybl; Wed, 22 Jan 2020 05:29:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyRZ18G98x0+htOObn96VKGXv2137je86xGIdRn6FlCNtJSNdhjzmfTj/jsQgrRshndTxCH X-Received: by 2002:a05:6830:1188:: with SMTP id u8mr7363415otq.274.1579699769049; Wed, 22 Jan 2020 05:29:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699769; cv=none; d=google.com; s=arc-20160816; b=WycXkCkFeYKAP4w63UgAEzE8PyoZeyUDlwT6OMjGEQUY7MP4Un4uxkIGCt4iJ91uP3 ZqVvlyIPBLn3wiBA0Wi3W//iHZZuH/fnnQ1i4jcfZ8znps95r1DdllNBDZ2EjgYwSQwn szUXcg5l23m4sp6axzbATW+cWCG+cRWOFN5SS31NgQoaJzt+dgSxsPlc/dBauY4un+ar S1CSDmRDKyOeDelis7rkewxLtocwhnjp4gqDOa5mjFjY8Bka/qITzeTFGR6JC2h5vmRR wVhPYqtzx8ZKUuHRZl4GpPHL4Q6H7q+5D9Muy9eCGrjDQ8eLnpcPoB5+wz8XKogk5emd 6TXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kZHlOhehh2zhACnmJAXxRAiOl15P5EeuKktDUE+vmz4=; b=ccwhKEg9Z5r8aRkPOt9tUhNqbMjzkj+A67HJPqea/HSDKQ7F7mRn90fWYkzg0Mc2sV kE/4J7fn+on4qY07SRd0MuvbTb0APCncri9I2yyZO5yb4AdxlpChpq47oA84N9iDrS3n nSgDraKY/ftM0ywIBKEe1IUFyjoTFKYVZk20N2l8Kv2AEPnM+IdXMjj5s5gAiwmEelYT UuriDQQ7M6DHAO7UZjlDS2jQm5/duwcKs9fP7aziHj3dYs2MADl+NPAEkt9ijkEIHpwD l1I5+Po9ukLOfjR4/7abD3+UOV0O4ofJINndWZy1WZGqYP1zTawxASc19mg+AzxABQxN s5eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZrT/bjAz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20si22986789otp.147.2020.01.22.05.29.16; Wed, 22 Jan 2020 05:29:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="ZrT/bjAz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731371AbgAVN10 (ORCPT + 99 others); Wed, 22 Jan 2020 08:27:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:48722 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731165AbgAVN1X (ORCPT ); Wed, 22 Jan 2020 08:27:23 -0500 Received: from localhost (unknown [84.241.205.26]) (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 3F5DC20678; Wed, 22 Jan 2020 13:27:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699643; bh=CVWYUqlclg5fm/jt+Yb59GU6VCCcr/xuHkuCWRqPg9o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZrT/bjAzn1B2onmB9T1sjuFHYMorafiaUB31ul+/a/uzaRZb6hrVmo6TD6czXtYD8 9bvlYm4ijYz5KWB+f8W2DwkGO9zEg7FrDbN7gCOTe3vsvLLisCI+yvKyiVJzBxV3o4 Z9TjuD4IeXL++TkOJxopTSpLVEDlmU39tzEGbIu8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiang Chen , John Garry , "Martin K. Petersen" Subject: [PATCH 5.4 206/222] scsi: hisi_sas: Return directly if init hardware failed Date: Wed, 22 Jan 2020 10:29:52 +0100 Message-Id: <20200122092848.450149077@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Xiang Chen commit 547fde8b5a1923050f388caae4f76613b5a620e0 upstream. Need to return directly if init hardware failed. Fixes: 73a4925d154c ("scsi: hisi_sas: Update all the registers after suspend and resume") Link: https://lore.kernel.org/r/1573551059-107873-3-git-send-email-john.garry@huawei.com Signed-off-by: Xiang Chen Signed-off-by: John Garry Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -3423,6 +3423,7 @@ static int hisi_sas_v3_resume(struct pci if (rc) { scsi_remove_host(shost); pci_disable_device(pdev); + return rc; } hisi_hba->hw->phys_init(hisi_hba); sas_resume_ha(sha);