Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9044715pxu; Mon, 28 Dec 2020 05:17:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXlVUj/ezCtfTxj176DLSyoCc+8l6EKqOrC05ZSdzF/5B+6X6x18MWfhm2BpW26gqaHGav X-Received: by 2002:aa7:d354:: with SMTP id m20mr41415400edr.195.1609161419783; Mon, 28 Dec 2020 05:16:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609161419; cv=none; d=google.com; s=arc-20160816; b=jlGE3E+iFjl76JL3GMdYJ0O3+09mtmLDd1V+2a9p00PH23oPF7FJwn3YaL6HhWVzXV 89RD1hmV3kjR/xru695fLV1kgzyTFL/DOGe6vNvTMEpAY+HUl6mD3OY5ZvLp4IUZxTZL y/2DyXs4OFLCyfnqn8+wFcQRcOKNfk554tYwjSBgcAW8htES87azFExO2SaqVtxYJEuq lXDixh/pCmoJlOBBLwrmbHVgqo1cHJYteVw8qXK/TOgt2RI8eRb4HPjfyXcwuh/6Wx+k BxTnj3OZbUtQsyWb9xGYStnjI5Lvn+PhtYQXF/iZu31lsIUKcaTG3Tk8y+6SyNg6cItM 9OoQ== 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=J5633GViUNsMLR9r7hry+c0sVsCXAm8Kc1UGLOqvlCI=; b=nyJytqevMrq5k7rS+v5gm85o3v6vRczB+FaEcnrNrF/yecHWiuwymIy9QeUSlIpLBR ecodlBsDuRIK0NmicBXgoCdz9blcSIJ+lNatMKNcYiXRUWa8GA2O36wB3qAMAU2sWmdK mTl3kmDjTh43ZvtxsdHLap5j8YHZDOLmeTJOaVBDVJ9trGSnFa7rP6WXYt+eowWs9EoG SCAlRgITC2B2u+LIiNQwHPLH5ngwA+VFs+ZupM2Ar/ttCJvLNIHS3BgVVKXdHwTn7LXH o2ozND4v2pQNnF20vxVENL9hZMvZ9kBw4+Ymd3HVOcrF9Ed+TsacJqJ7I77PUkc1sKjX 05iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=FY1+uTDE; 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 38si20436134edr.163.2020.12.28.05.16.37; Mon, 28 Dec 2020 05:16:59 -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=FY1+uTDE; 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 S1732494AbgL1NOZ (ORCPT + 99 others); Mon, 28 Dec 2020 08:14:25 -0500 Received: from mail.kernel.org ([198.145.29.99]:42530 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732475AbgL1NOY (ORCPT ); Mon, 28 Dec 2020 08:14:24 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8580D22582; Mon, 28 Dec 2020 13:13:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609161224; bh=oroVu+Y/v0hARBDWPaa3/W+x6u0CoNwNdkAg8smfTfk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FY1+uTDEto9OmPrkbEJhjB/72xG67sHtgFSQL89j1FlLjrucp9YJTLDsz+6tHVFVM 5abImIrB5plH5PC2ccIwhA0+fF83cid/OaETdnZwCb4gWRU5ZKcW+RGvts8QxRcVvt FJp3ywjKPH9eOjwvdHgHTHGg4Kl42GL7GKYv/ThM= 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.14 104/242] drivers: soc: ti: knav_qmss_queue: Fix error return code in knav_queue_probe Date: Mon, 28 Dec 2020 13:48:29 +0100 Message-Id: <20201228124909.813022784@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228124904.654293249@linuxfoundation.org> References: <20201228124904.654293249@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 eef79cd5a7238..25baf13d6dfd2 100644 --- a/drivers/soc/ti/knav_qmss_queue.c +++ b/drivers/soc/ti/knav_qmss_queue.c @@ -1787,9 +1787,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