Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9121406pxu; Mon, 28 Dec 2020 07:09:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCB550hWD6685BZgm+Fu9TXLK2aWcWcuC6j16F46vGE2U88kWgeefAnvZtnNyjkuoumfux X-Received: by 2002:a17:907:444f:: with SMTP id on23mr43223239ejb.300.1609168167305; Mon, 28 Dec 2020 07:09:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168167; cv=none; d=google.com; s=arc-20160816; b=h72m6QYs2pZo6I2p4zgf7KBjG8azb58wG8pW+ThBIgWPYtF1ro4IS/Zw+RyyqQ6Mg7 9YLs/PotDoPxCDTJS2aHLcyGxuloJLc7DUHM2Mqjgxd/mBMKwteEf5UZx1JPwNFwW48P A1SMVi94yWjxnIiOvBl0HdRIlgMya1a3TXDT8FVHH1ehpuYwU9ebBCMlKc0Mr6vgjn1t eDrER+VOvOc26NTK4rYeD9IRtlEgIAxbYSysTHWBJaqum9GemzaSgwG3WK1Hn1SCJjd9 ywlv48sGL4++lL+eT2GMNQusx6JjQ4IccH69dV01vKkeiw+I2RR/noVdfODhHHqFs19q Up1w== 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=kaYYNMzD/qCNLV4O+QjcwYTTGidXQruSv0T56wSDKsI=; b=kxpaXQSZTK1wCMvQzB5TF7QfgPSTClDKVW6rgXTp2YLJ+blzt5XXqh+SwIaJb+B2y4 rmAJCB2ZM9Jib/58vLwWn/Cq7UGLSpebPcfbtkqQgCqra0vupyhYMLZL64+FML4UzVZs ElQvUzY6H5K9rTkXLf1E8sSaBqfCIfQ9iNDnrc1Vh5gV92x4KjF4mub49pCBZBuksmu6 F3uvAVPKVjFzlg/bNltDDVCATrHFhsJFYlahBfe53QB63HHPuyR1ewwzkUJNFcuSpCMz X3reaqyPw87Ddc503INzf/ysNaexyx1+cjYtKutRWnjJwyPjgneV02uGXcku0knLkwrc yENw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=r+ALZpev; 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 m14si15403194ejj.422.2020.12.28.07.09.02; Mon, 28 Dec 2020 07:09:27 -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=r+ALZpev; 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 S2438852AbgL1OJn (ORCPT + 99 others); Mon, 28 Dec 2020 09:09:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:44142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438838AbgL1OJj (ORCPT ); Mon, 28 Dec 2020 09:09:39 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 536E9205CB; Mon, 28 Dec 2020 14:08:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164538; bh=kn9I2snE1EYFb5f13mWzwOLLPex3imTmsSXYR9q7cT4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=r+ALZpevjIKj8lGkkOf515+vBKeM8hkdTtMBZpA+SiksdcjeUoMGsu3jrcSoYuK7l JASxDSRHtuEH/L6Mb1jxZ79rnSlGkk7cJEmDdtT7Fg/lwEizb39o5ZNQvtQVrFaY/h cnYNkoqASEDSc8K9VkpWEezQD5fa3YtlkPyMp/iM= 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 5.10 180/717] drivers: soc: ti: knav_qmss_queue: Fix error return code in knav_queue_probe Date: Mon, 28 Dec 2020 13:42:58 +0100 Message-Id: <20201228125029.590740066@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@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 54afa8f7f4087..53e36d4328d1e 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -1852,9 +1852,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