Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1124328pxx; Tue, 27 Oct 2020 08:48:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVQmrpsysUxanIaW35iI9rIZxZkNp7XhqNmylXCD5+BRBGjkgHaT2Qmd7nD+3YrPAqb/sn X-Received: by 2002:a17:906:aed9:: with SMTP id me25mr3123780ejb.52.1603813714146; Tue, 27 Oct 2020 08:48:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603813714; cv=none; d=google.com; s=arc-20160816; b=CI9ehzezo3l6AmS7yAk9EN0Ncf4G85lMPq4tzwixxejmMEBiSN2fR/6io15GAyuNWB G9iYNDQLsUFHjNJEM3pwPBFeg8cIstrVcSjfp6Nzu5i9otn+EI7j47DZQfxIxvJjRaFO 29mivM4pNRCIZXZUJtiQLmS7BWac2xCMNYatZICwXHDRI39mp8f43Kt4u7jMPHvQGxvr 7bs/7uNujxHWqd/JBUZ5qcpyaomg9w/e1pkGrEsrauHfIf2upQR9uj/Oa/VAnVpkJyIs u9x63Im7HjgnUSLxjQzWWoMttNJjoLDatuv5KFHhnrhho4BDFXCswSjM8ECec8ZxXP6W W7Rg== 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=ix6Ki1QkgSOSzRwTFmIzfpYRUVnChljicJHSh9GhHz4=; b=D/NdrdkUMR4Sy3PqIhinXGXH3IEGHGBhgW84U8utXNgQp0Imfe+W0ZwdbyKmSmAHlT ZgLjLs6/4tO7w88WkB6BlPWbkdv2agUipjjrhpGHW8vsSbxX88iZoT3BfUKoLUa3iM9o +5YqhouInBscVKK9eqadlExPz7eR4wGNanuFexm7kdBxc3P7m23aaK8t9gvYll16m4tz hklyU2XjwXnkxN5xWWbaQx7YKInTh1GcbRCa7oJD51v1mQvxa0pYiY/LaBP1cjcuSpyr bT2O+p5ezhnZw4hB7aw4X/RjzQnOIeI3gUS8Vo/kY8y96iMz+wR0JTApyY48JFX2sLkE cDmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1ZogO4r/"; 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 m17si1118433edf.309.2020.10.27.08.48.11; Tue, 27 Oct 2020 08:48:34 -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="1ZogO4r/"; 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 S1752734AbgJ0O5F (ORCPT + 99 others); Tue, 27 Oct 2020 10:57:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:45700 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763977AbgJ0Ops (ORCPT ); Tue, 27 Oct 2020 10:45:48 -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 5088D21D7B; Tue, 27 Oct 2020 14:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809946; bh=aVN0XD+W72zWAq8WIH6dVuf20bTx+EfECv4rGISoK9Y=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1ZogO4r/NsVCS+Cy2xTaESxIdj6d3ILc3ubbwUozbNvsfAdKtW5Od1VVisQq0hDEc tqBhNdnIUD1arEcbzLjMuF93V9p/lf+Wrd23C0o0GO79t+wNL4pe6NubBESVaA7c1s HThj6wIg6Vgjbrck5cN6AerFPjj9aGmbWJckJCYM= 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 5.4 375/408] scsi: ibmvfc: Fix error return in ibmvfc_probe() Date: Tue, 27 Oct 2020 14:55:13 +0100 Message-Id: <20201027135512.402786374@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 df897df5cafee..8a76284b59b08 100644 --- a/drivers/scsi/ibmvscsi/ibmvfc.c +++ b/drivers/scsi/ibmvscsi/ibmvfc.c @@ -4788,6 +4788,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