Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp297890pxx; Wed, 28 Oct 2020 05:18:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwxBC22zqogmYWlKeXpJakh5y7pirOCAubf9e1chw2jTby/9BoAO2cgtNn3AxUMG9N8Gi0K X-Received: by 2002:a05:6402:1042:: with SMTP id e2mr7633490edu.320.1603887515772; Wed, 28 Oct 2020 05:18:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603887515; cv=none; d=google.com; s=arc-20160816; b=wPvGSJkooUQJQBEDp/LrApeIArMYXpaVRMLGlHEJ7e72Rb+6UX8njyPsgJGZr8kOBo 5Q68cZ5ynki0yRd9jdc7dBZbeV/CttcT1DGSadGYAgfRcgv6fIKrdK5f631JSrj8u6YW FATpais+57Nj3rF4Tv7yCKpizzbIZGIraYd/KNXlKcK6f4HgBwRTNCYS5elDpGlxYfzX GMqkVhDnWB+9YHCkRHmstF1ryuFel9IQbAmG1pSDxsNgxJnvXLz0sVC1X5bvzgHkbZAM 1JmxLwMpaseBhXi2xo5g/qpTPYhUxmhjf7Q/9dLhjY4LXGUsV2waxpqjdYpAs1rGfItv iPAw== 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=VZDmrn3e3YfG2+Yu3W90Wv441pn2U1o2raGBzUv9mWPzw6Tako6w5lrM2X+mFEER6t +Vm5TuwYMXTe9QPBAG2/1U9hqd2DBmIkZAB+Jk5a2f4q0tC0LsKpyiQE1bv+zjTOpATT xnP+wJmtVlTcGUjIvh8XWL/7oo13UTrb4At7KPENcf16q72+1VtTp9p0IEJRzPwdFjdz FmwqQx3TunqlZ3h/7E+wkS09ZIdrIdQLSHoxXQuatE3ib5l7UM8FRr0MmQNX6IliL3vT mg+ibt8b4rMPsxewHXf+jbNSZBPK/XboMuc0jByNv0hOXNJxXGcbQ+TkTbmjGoJqG1ei 7AFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gf8FZjHn; 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 p19si2741759edu.169.2020.10.28.05.18.13; Wed, 28 Oct 2020 05:18:35 -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=gf8FZjHn; 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 S1796400AbgJ0PSO (ORCPT + 99 others); Tue, 27 Oct 2020 11:18:14 -0400 Received: from mail.kernel.org ([198.145.29.99]:50876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1794851AbgJ0PN4 (ORCPT ); Tue, 27 Oct 2020 11:13:56 -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 7259921D41; Tue, 27 Oct 2020 15:13:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811636; bh=rv4AEcROxj8BAs2llGk0xVhlp4UVGLDxwUVC5kEsDUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gf8FZjHnd6TGhOg6EcXmNtOr2nRsLjjeeaRvR4W7sj1j0iDvJXrCHkC0XZqVqusli RD73UPvjFJc/Js/EUb3k8QzJ+axUaVi54Zc8ZOd99RJ78UnlrXPLKIc9xpHew18ehj deDDRGHiRcMTVSP3vz2T6a+nG5EDMZGVXbQzAzpQ= 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.8 564/633] scsi: mvumi: Fix error return in mvumi_io_attach() Date: Tue, 27 Oct 2020 14:55:07 +0100 Message-Id: <20201027135549.267457995@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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