Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp614493pxx; Wed, 28 Oct 2020 12:26:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNacQ5bVfQN/as6zKrom4cl+gwpmPWDaMLQYW2/ICYzA2CCRk4lNchrCDTOBwSKT/2BIKr X-Received: by 2002:a05:6402:19ae:: with SMTP id o14mr444604edz.67.1603913202270; Wed, 28 Oct 2020 12:26:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603913202; cv=none; d=google.com; s=arc-20160816; b=zFhfeKApo7E4HNh6NWw0g66L2r3KaVDV9T3lP12vUCBosp/P640Eb19kzjEdpPQNig 32zc1pu5kvQ4TGJjbc2nHMzbVMoEosp4ZA+Rc0wQiOzW7x0nmR9AaCiVfqiVH3B2s/ub 3CYGjRn/bvZ/Ej/Cm7emlZSyvCQBdd1R3bj6mQhPyd5SdRZel5iJdn4gmsra+PGN5yzX +qkheUXrbEnAWBtc3Xw4HTVNZfMptWY1VIPzDi6gUo8LK+5Qq23Q6Dxdl0wIcL89WSdc TtbG6GtQBT4C9T0o8FhpcQudrHbAyh/bySagqeG6DLMA0ijSk6zTLk/r5tkqpSdKmRRf okqQ== 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=hpp0Ir07n2EsCJ2spp3nZuVpZxXuBw5fNV1XfVUTSpQ=; b=Hd6x8YCQk58QEvfy/SGFieOs5E3kD7Qyhdf20Nu7q+hREhMHKVPGfdlNOcqgZw//+5 sTk1mW+nVzj214LN51wuEWEPnX5o57lAnbWctIVs8CDhSUcYFeCf4X7NKA6DAJwHEzFb hD3Wyqivrws0CjmA9yq3UoQKabft6eybJbljPJZAzV2NYeBxRvd/glZYnXXQ05aWX1Zp 4kQsxFmKfuksH5M/HrttA1O20AJeOiRBlAj/trMHd9NlrEtb84+QRcFLRDO3gXC+mNFV Mvmt6IkhdFFz7RKhnihkjClJZttRzftke4/XfuKHZH5JYrwtC/PrLL7owbrFO/7+6i/n 6A5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qG5LaAfi; 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 d23si10484edy.397.2020.10.28.12.26.20; Wed, 28 Oct 2020 12:26: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=qG5LaAfi; 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 S1827339AbgJ0SXI (ORCPT + 99 others); Tue, 27 Oct 2020 14:23:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:49634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438662AbgJ0OBv (ORCPT ); Tue, 27 Oct 2020 10:01:51 -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 85105221F8; Tue, 27 Oct 2020 14:01:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603807311; bh=SBkxYVyJD6g5LSEeSgtiHjd3WiPlaeyAddD+i1RKgXg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qG5LaAfihf4iXQAekV/ShmUMUEJIp+31Csibo7e/L64u+MY8Owg6Pde9Mj2ZXQsk/ qR9D8ZE9PFLJ2DOkaYHkfViwv8pA4jfLCNOH1OK8Sj4IUarrjVmp1BhPYYlOU3i4Fj GMGefhHkrx/2sIOS7W+b3jK6+8FnepLzx4EwHsiw= 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.4 100/112] scsi: ibmvfc: Fix error return in ibmvfc_probe() Date: Tue, 27 Oct 2020 14:50:10 +0100 Message-Id: <20201027134905.273216624@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 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 0526a47e30a3f..db80ab8335dfb 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -4790,6 +4790,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