Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9183000pxu; Mon, 28 Dec 2020 08:39:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy17PESQInEjXbAav/fGRpeZkRAHMeerB6cH07B1sO91V9lL60+fXFN/RGvscZurnQzf9V5 X-Received: by 2002:a05:6402:94c:: with SMTP id h12mr42943903edz.268.1609173548168; Mon, 28 Dec 2020 08:39:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609173548; cv=none; d=google.com; s=arc-20160816; b=b/EYP2sW2JIlEEneQFENrPXFeuwD9/RBPrnoAecifxmn4qm+9fPklevDckopF6ii9p E52MlICG5HShXbZjzYd6d6oWZTGwsrPNchJFX3O2q49VWFZJ9BNCUfHaOWauDYAMTOYZ 7MzGoC/aCJ+KSv5AKHZDkubf3v2pscSMkbwk/6pVsanzV3HKYSV4sk6he4EwtDkc0lz7 SkyoFKGLhhGc37Ykv7FtnqgcuBg4PX8Z9TtL3nkC2WNrVfGv0X7LN+ToUZ1C8L5G8DMz ok69P8aDixnaw5NF56qtEe2LpPVUFEYOzMfJBdDWc8sikvVkO4lB2UG1yID3fQb8tbf5 +9yw== 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=YzHEbfWsQoIDRj3hcGtcgppCG3nnJGsu7IfeSabh2RA=; b=lZzGbpYJCaNjC9/OEIQx8LbeaUcTcwid/niuTMmfPFERbXFDEb6cLrvaTKlF+/LonN 6bq/196/jSpRHoXsZh6VAf20FQoLCbQIBmjMtr0fyP1oGjn392dDc88ETFiG0QVqdyyr Z9tBRfhKGxgDah/o/l3okxG9BLeO+efu/BrM7PAZqZHwNpuxE8Ypp40V4xwrU+kUxZIc AAcI9ll0k9oR4fwwX8SDYBsXOdPBuOwxYn/K/z2JKyy1KcOS3s2SAR6o6CxqiH1R1t8u ay1sWjdA+xEoMSv4qzcTAcNHtyMkumVXF50Jwumu0xWUHgkceuwk9/sklDOMkN+Jh+uw OGDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bi9FqTN5; 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=pass (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 bu3si21735046edb.376.2020.12.28.08.38.45; Mon, 28 Dec 2020 08:39:08 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=bi9FqTN5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730011AbgL1NCN (ORCPT + 99 others); Mon, 28 Dec 2020 08:02:13 -0500 Received: from mail.kernel.org ([198.145.29.99]:58074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729948AbgL1NCE (ORCPT ); Mon, 28 Dec 2020 08:02:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4519F21D94; Mon, 28 Dec 2020 13:01:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609160508; bh=SoeKulYziUtVqnJt4EIC3T0Mt1ew3T3xrd/+Aboe+BE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bi9FqTN5dk+UeNH+wyWX8wPI+asYo8lgbTvJH3W3kDPRdWdQhBUmPMHnM1AMmarCs vkv2kBwvpPpYychyFSp2itY855RJ/V4//KZ2TumEO/8YCo1SkUAxmJaZJwdxSu9MrS /RnHR5hJAaHy1eM6HwWOkD5RTxOmmM5yNNQV1gUA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zhihao Cheng , Santosh Shilimkar , Sasha Levin Subject: [PATCH 4.9 075/175] drivers: soc: ti: knav_qmss_queue: Fix error return code in knav_queue_probe Date: Mon, 28 Dec 2020 13:48:48 +0100 Message-Id: <20201228124856.874221232@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124853.216621466@linuxfoundation.org> References: <20201228124853.216621466@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: Zhihao Cheng [ Upstream commit 4cba398f37f868f515ff12868418dc28574853a1 ] Fix to return the error code from of_get_child_by_name() instaed of 0 in knav_queue_probe(). Fixes: 41f93af900a20d1a0a ("soc: ti: add Keystone Navigator QMSS driver") Reported-by: Hulk Robot Signed-off-by: Zhihao Cheng Signed-off-by: Santosh Shilimkar Signed-off-by: Sasha Levin --- drivers/soc/ti/knav_qmss_queue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/soc/ti/knav_qmss_queue.c b/drivers/soc/ti/knav_qmss_queue.c index fec97882ac880..5248649b0b41e 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -1785,9 +1785,10 @@ static int knav_queue_probe(struct platform_device *pdev) if (ret) goto err; - regions = of_get_child_by_name(node, "descriptor-regions"); + regions = of_get_child_by_name(node, "descriptor-regions"); if (!regions) { dev_err(dev, "descriptor-regions not specified\n"); + ret = -ENODEV; goto err; } ret = knav_queue_setup_regions(kdev, regions); -- 2.27.0