Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp622816pxx; Wed, 28 Oct 2020 12:39:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWHKKBq06gfJkHMuknzpK2uKx8yuW2D7ZatF9MbUYc2zf7zsHwVWLbagQttD+Bdd093S74 X-Received: by 2002:a50:9e0b:: with SMTP id z11mr491680ede.341.1603913982345; Wed, 28 Oct 2020 12:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603913982; cv=none; d=google.com; s=arc-20160816; b=pCN00uYwcYh9X0H70vU/DnPKFudMF8J/MKv8+801TJIaqfvfpVzvlDfbG2tUeOI1KQ Hk5c+IZIYW0DSyVf8ZcnjPnP5k+edjBASFlQZcj0vexCpBvl8SJgc20y468PAPYGOJGJ Uem2lOVKhIW15KPsGK+YW9vILx70vqZZjCpc1w1OQXkzwy5MmqqUK84tyxuI1Hi+R9C6 ByZNQA1iEvPEUVZPNpHqbuXYRLa9JBEIgh9WdE1Tp7eh5Dx6llizkGrFluiwEBQNT+do +3ebQDES9l9wPca5RWPw8mppqpy82DY9VplOwgYBtMLrgcMqthR8iRl0PrAmtiMGOfjG dBzQ== 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=q1SoT3bg8XgL3q5Cqa+0Gij9+tNXO52v+C1XUT999Ug=; b=eB7kF7P3pDdzy0sjenAjbXVAQXSgvZZXLmafUtje975S5uyLbN6qQ+NcgmZFPh72Qs jsqdqDMeBCQbs9+cx1NiDMX5JEBnq2zzPP42eaZ2EAd0W6EqO0GzW/YUrcdcWPStsAtz v5CR/HoMcmM3ev4DFkTBIFUzfHsEiz0GP1Zz0gXm+maA3wJrrf2SOmeEleh8rizjICig QNUt1GTruQIJoIKEWpRS3rZnF7I9GhMroUtsBkOV6OV+a3uahq38IW/p3NFblqNjeH2I zl6HrSSDy2gMwN+fIf9Tvko516GOoGenFcP9tSOX29N8eCAdIcSbiISK/Siqbc0GjGy/ 1Q4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gDKYm0G3; 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 r21si3290edo.519.2020.10.28.12.39.20; Wed, 28 Oct 2020 12:39:42 -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=gDKYm0G3; 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 S1827700AbgJ0S0t (ORCPT + 99 others); Tue, 27 Oct 2020 14:26:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:47996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389214AbgJ0OAb (ORCPT ); Tue, 27 Oct 2020 10:00:31 -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 74E8822258; Tue, 27 Oct 2020 14:00:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807231; bh=K1cOy7GnGWxE5vzIESe07CVhqy2mhR1U79X/UZxUqgI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gDKYm0G3oMtRQMnHVT3kwmxBdPxN71BLGsMN3VQBpu03O7Vi+qH/lpSWzxjgZnwIy ULyQP7ZaaIlMhoYsvd50pfJBNTvYEQIR2l+SE3zk+TYPJAxHDQRB1jOi2X8D5SdH/5 X4kM6Nl8xmLGAIc0OzoSJhXd/soW6xy3g2SjYtkw= 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.4 089/112] scsi: mvumi: Fix error return in mvumi_io_attach() Date: Tue, 27 Oct 2020 14:49:59 +0100 Message-Id: <20201027134904.758468194@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134900.532249571@linuxfoundation.org> References: <20201027134900.532249571@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 39285070f3b51..17ec51f9d9880 100644 --- a/drivers/scsi/mvumi.c +++ b/drivers/scsi/mvumi.c @@ -2476,6 +2476,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