Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1121010pxx; Tue, 27 Oct 2020 08:43:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA5hkU9xaDjQQQohiU1iJ9cInqP/7O+D4iQI62/yvA+CwcKkwSBsiIrd8wV7ioSpWPhXoH X-Received: by 2002:aa7:c358:: with SMTP id j24mr2906152edr.265.1603813429507; Tue, 27 Oct 2020 08:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603813429; cv=none; d=google.com; s=arc-20160816; b=sdcwfBhuS1PRS9VfBosnC5ooeav+fzke7MHxe/7tVDJOM7VsrONcCl+IInLJQYetU9 XzOxZTBp8svmg1Inos9KLGOM0SAqYE+tjQ9yy+gv24QfPgKoGZBZu4NUGfEZO3rcilz8 8Jk6OZC2gd0czm0xDSYIoUKuMf+E4nk51w8hktWItTz7ncGe8u+IJB5eXhdKLF8P7dE7 2y4wSWLtSZedKcHzPoCpdNXMzfeNs1kp1/xEkXmLfp/74PvfEQbdX0sM2zagZI9a1DaK ZwULUDxiiTEpKXFjYOG/5iswW6Dj5abTQQojmmG+JuGq/kwnYlHYWkkSI547BGoF076Y 7gmg== 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=kjkVFDdNZZmphIK/TmNbtn7EYRLWEwQqjEvpu8GTXO8=; b=Ec5REDPN1HZgZo9gPDt15VUkXgBRGo46gPR6ZsZSuTDd2/Vw66CDDwF/QzrkIVxe7N FsVT0JGaxK+cBYIy5YA9nQ7pTJdTfNt6hxGSpWbqzQ1su+nZK/1RCqzTVArzM6+6tvSr 7MX8J/VgTJYqS6v71zsl9QPbh/XqU7DQu93avvgw01VVRgdgsy+97+tCGuYEmpVs/+U3 AWS5mdW3M++qdX+Wxn+VeToWBTz6m6O9DcDEjwqQpX2RGYvP/FS4Akb4aQZ+Y1XypY5x aD4J3wyUcsB0xByOWTUoHGYnkL2XiObBz/UgTDvQtNS/ZafmjqL4CxXc6ePRgIfpLNpz vweA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ESTb2fO5; 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 b1si1616874ejb.112.2020.10.27.08.43.22; Tue, 27 Oct 2020 08:43:49 -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=ESTb2fO5; 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 S1764134AbgJ0OqS (ORCPT + 99 others); Tue, 27 Oct 2020 10:46:18 -0400 Received: from mail.kernel.org ([198.145.29.99]:46032 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764046AbgJ0OqH (ORCPT ); Tue, 27 Oct 2020 10:46:07 -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 0C7A520773; Tue, 27 Oct 2020 14:46:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809966; bh=rv4AEcROxj8BAs2llGk0xVhlp4UVGLDxwUVC5kEsDUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ESTb2fO5nrMqir9AAuFeCm4Kd8sBk10+NSl1er/qP+2mHpT3OYvkBLpbLmyQx7otc y3V40bp1Qldrq3qVNHVCEYpOzGnMs917EVTEjSu1Fyl78yPjNVvZjdIeMB7EseIwTY o3hv7xIuEvyx2RGnUcSq7apBqyReaYzGXx0NWm9s= 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.4 352/408] scsi: mvumi: Fix error return in mvumi_io_attach() Date: Tue, 27 Oct 2020 14:54:50 +0100 Message-Id: <20201027135511.351151125@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 055f15ab2cb4a5cbc4c0a775ef3d0066e0fa9b34 ] Return PTR_ERR() from the error handling case instead of 0. Link: https://lore.kernel.org/r/20200910123848.93649-1-jingxiangfeng@huawei.com Signed-off-by: Jing Xiangfeng Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/mvumi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/mvumi.c b/drivers/scsi/mvumi.c index 8906aceda4c43..0354898d7cac1 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -2425,6 +2425,7 @@ static int mvumi_io_attach(struct mvumi_hba *mhba) if (IS_ERR(mhba->dm_thread)) { dev_err(&mhba->pdev->dev, "failed to create device scan thread\n"); + ret = PTR_ERR(mhba->dm_thread); mutex_unlock(&mhba->sas_discovery_mutex); goto fail_create_thread; } -- 2.25.1