Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp581051pxx; Wed, 28 Oct 2020 11:37:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/JzP/TCxOfmNJHgNXAcq5sYx+fEcp/n2kdwN69sZDHqHNRkUZAKrxGG1xucXD9P9xoaJR X-Received: by 2002:aa7:d7d9:: with SMTP id e25mr212942eds.253.1603910231960; Wed, 28 Oct 2020 11:37:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603910231; cv=none; d=google.com; s=arc-20160816; b=OsnKmSmvcz0Eex4wDWNf/rA0kSja61R1k5AxjaKVktpQaWiW9+yoTniNnelmVQnqPl j1TZWmCvpWX+ylsig2fNpBKcvDnyUsAWCJmBqGnX7M27YhMi3NTlJOmZOtCKjdk8kLib bmQyI561kzI7uQ8QrUxFNjpBqjlIxGCbEIvCQULhltLD20dx2LgjVTyQGD79cQ98FJZa gAy2jGZGgHS2USDm6sbERxiWiXwUqF/U2dXDDq3eLpbH5Y3wePK3aAltkIe7GaZE37qX DlkcAM9Mk4ONJZxEiegDRpfuSbUzWZNLSjpI4PXhV3lZT25BLyRRhDBmQvzT8PVfuiZl DCGQ== 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=NhCAIenv8MhtUyGHgnaLxMaj6zxLbb2BDC56+ko5us0=; b=fhvIp7hVKPxXk/s6K9YDaI5bd/VyhWO3moeJlAdfygdSUcCOfP9BJj5n0T0fQVGbf9 LIREx85BFPC1zwaR4Lggm2tjdSNzGu6q0gPr78zYKuWKXCwL0ri9mcPqhyR/6iKWkzgy lS0GpxmpVAZXnABBBq9HzN0k/L5hONhrAgMsK/AiTpyme1F4fNa9n+rQ2vxeZj9PPlCC mGpwRS3JkYYHCSWrKSNGFMztPYjSLKAnkLi3O2Nmp9iGE2yY3CIw6kFHsYS2ZxvxFMp3 ksHUSSFpIpasFAcuIjlEWzyHZrhS3QbDGyB9pGfSpGLE85DOvwvtMyT1sYoFQAU616I4 zN+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=x31dIYme; 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 n18si9672edr.422.2020.10.28.11.36.48; Wed, 28 Oct 2020 11:37:11 -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=x31dIYme; 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 S1821363AbgJ0SL4 (ORCPT + 99 others); Tue, 27 Oct 2020 14:11:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:36804 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755609AbgJ0OPC (ORCPT ); Tue, 27 Oct 2020 10:15:02 -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 C18002076A; Tue, 27 Oct 2020 14:15:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603808102; bh=ADwdWwiFKwBdtf3Rz+fuqdN20bUstmwYzptpeS9bQj4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x31dIYmeDUWsvLL+yRlW+/aH7WOGogcn5fp7h86LHBKjV+eNMMlGGE6Re2WwjrHDM 7+gF/t77pGVB402Z+LWAVMyCc11wqRLXYOr0vEgA/2bUIXDACJJvu3/UDmKBW+ZOOi lFetyFvNjAp3KiJ5teDf02dUwIcjdZ1SCBAwcgUg= 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 4.14 157/191] scsi: mvumi: Fix error return in mvumi_io_attach() Date: Tue, 27 Oct 2020 14:50:12 +0100 Message-Id: <20201027134917.265126654@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134909.701581493@linuxfoundation.org> References: <20201027134909.701581493@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 fe97401ad1927..1fffa301c1b9f 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -2439,6 +2439,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