Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp181767pxx; Wed, 28 Oct 2020 01:55:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9luvVyhZ6NJCDNZKe+/0z7dq1tOo/5ZhS3qo9q82AdV9YLa1LNiJXGsAvoUsmRUqihpky X-Received: by 2002:a17:906:6589:: with SMTP id x9mr725816ejn.350.1603875309362; Wed, 28 Oct 2020 01:55:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603875309; cv=none; d=google.com; s=arc-20160816; b=jNi8cGRSeTimQrvxARExxs1HXU52AxbfpMxs7TCqKAJz0mN9n4oX1emtix+mr7WQo0 Gd3tMNZ8sXcUbEj+0PqG3WYDoYzyjlu4mBtB8zHIK+iVyokdlukranLlng3HHxWILVNv APXyg9yxY+/3+2bHVKRvREZlQ67BLw3BESdtbbObWvUIIRRVCVGXHuIAOrDPnUmGXBHQ M5fY6xg5Clls5vga7NTfKuUrNuE3nULH4kY1kM4vCOw9oKZX5tWYeJWBwgTznyWFzZHY blQxgemktegOC5KY2QYC4jUG5wZzrsg7sJd+YledxLy2TB6js2qI5YnIQgENSWsmXKO6 T5uQ== 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=E2tbrNX0pr20YgmaWBFunB8nyw/6Dbg9kQfh1zzn6G4=; b=SRvbOB2uMH6WrW4PvVfFQYN6VweTC42jKQCoqXFH6yj+Kbtv2fxZe8WdLiICvZjXf2 rljKmrJuyvFmrmxiKbnoGObKYg9naCsD04xqNyIlyR2xLKfJRPqVucbDtK/b5PIMsRK1 WHQYsmKR8YmlQDkQ1WFOPYacrPWd3HotiSx7iVog0g3Ke23h25Fc3dHzsLxI+kH3lsrm mzjYoey1f6PFmyCJ8AvsZ2AGNUYsJytqZa0d0wIqQ52MibMAfVUXefMRDwE4qFNm3xrJ gJQ6AMJioPIr94AQyX6ZdtNw38paDvSNK4pxbIHFxo+6WFAkFgi2oPu1LiGKE/Q9nF/r LxIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=v41KfYt2; 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 z8si2802677eju.267.2020.10.28.01.54.47; Wed, 28 Oct 2020 01:55:09 -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=v41KfYt2; 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 S1756544AbgJ0OOC (ORCPT + 99 others); Tue, 27 Oct 2020 10:14:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:55988 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754825AbgJ0OHR (ORCPT ); Tue, 27 Oct 2020 10:07:17 -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 8514522264; Tue, 27 Oct 2020 14:07:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807637; bh=gUGweC2s5h8cCFEbW3qPg71iZA0lio2QeGaYb6gLJSc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=v41KfYt2mL8r97XK/N8oA0IAbm/L3gvIbpVJbsoS6w/KZdDfmCFShDEMSKgrTGGUk CM/dcbjyFIk0cFwonmKq7r4WLRbOzlYfGs6kkQR0jPx956uR5yW4TTn9vs/Qb+J0Ts bTM/XZNQtUp7cKzRCc8Ff4W89cuv3BeE/tMxjRFQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tyrel Datwyler , Jing Xiangfeng , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 4.9 125/139] scsi: ibmvfc: Fix error return in ibmvfc_probe() Date: Tue, 27 Oct 2020 14:50:19 +0100 Message-Id: <20201027134908.085662835@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027134902.130312227@linuxfoundation.org> References: <20201027134902.130312227@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 5e48a084f4e824e1b624d3fd7ddcf53d2ba69e53 ] Fix to return error code PTR_ERR() from the error handling case instead of 0. Link: https://lore.kernel.org/r/20200907083949.154251-1-jingxiangfeng@huawei.com Acked-by: Tyrel Datwyler Signed-off-by: Jing Xiangfeng Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/ibmvscsi/ibmvfc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/ibmvscsi/ibmvfc.c b/drivers/scsi/ibmvscsi/ibmvfc.c index 54dea767dfde9..04b3ac17531db 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -4804,6 +4804,7 @@ static int ibmvfc_probe(struct vio_dev *vdev, const struct vio_device_id *id) if (IS_ERR(vhost->work_thread)) { dev_err(dev, "Couldn't create kernel thread: %ld\n", PTR_ERR(vhost->work_thread)); + rc = PTR_ERR(vhost->work_thread); goto free_host_mem; } -- 2.25.1