Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp3867124pxv; Mon, 19 Jul 2021 10:38:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjtBJ7WTdo0v/TnmhhqBBGW435ZkCMdrN3Nm/gQlJe87D76U0tOyn4B0Iho+g/nrblmRVt X-Received: by 2002:a6b:6217:: with SMTP id f23mr20172398iog.173.1626716322915; Mon, 19 Jul 2021 10:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626716322; cv=none; d=google.com; s=arc-20160816; b=qKxQZ+vxrBjwGsNBATPxR99vojid+SkXLIKnIZbZGxCMJw1t5JIA/uckivhV25LFuW wJUZSc9wNCPy7fH9OO6ilIkVwaUDEjyvdlREYuKOM7q9Zkz+U0a0UjmrB2I1oVUof0jJ k2HBNCIjVE6HLjZUitVoqB2uSR/QxV7eU0TDu5cZrIbTcIxiaJ7AFw/UuE/ZzNQUtQ3r IhReV0gticYFvM+Mqk05fKg52IxwZq86We1E9RbVcq629xDrtpbKtk30bFDUo82u+5jF B4r6fF8nqM6Up8bQ5envRmX4Og5LElDedlvRE4/4nski81F0NT3rtzzJofUz/xJe2F9S xFxA== 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=iVuYRwHOqz+zCDVFFUliUx+0FrPEFKhNxEr6Nrg0UlM=; b=m5tbbGV2rTcaJXoDiOScabgpLz9E05FSwvu16HjfboBB5XL9Keg6K3NCQh9yGpAhHt wZelpfkPmIS/p3lVhElypaYmhZT1L0xAC8EAiHdDbrCo/P3ndlxJZ4CUrmCHv4BGjPTc tchBgww3bQOyZjE/GIjtzk6nVjNRLdsvhYzzVEyP/MoRP0AgvPv3GpV24fNRpeJ0cnUN HFP+hPnBn+EWHizT778d/7rLCfk9QhXSTiy1f49Ijaazxwo7AKQ2pj0L/baTbzFe5luJ /+1L6DA6ZGGrcy+QC2KGoO8tdgLWJSHKqu+lWTeYRmD4gNS0nHyqzaULXKExKmV3etih IQ4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NZP0yPLK; 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 j12si20925797jar.85.2021.07.19.10.38.30; Mon, 19 Jul 2021 10:38: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=@linuxfoundation.org header.s=korg header.b=NZP0yPLK; 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 S1357818AbhGSQwV (ORCPT + 99 others); Mon, 19 Jul 2021 12:52:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:38038 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347853AbhGSPWG (ORCPT ); Mon, 19 Jul 2021 11:22:06 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4A9466113C; Mon, 19 Jul 2021 15:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626710373; bh=64RdvcXyX7BUZUOJA4et+AYBUcmDtFbYt/ytQXdenZ8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NZP0yPLKpLbNJuxjIrAWY+JisGeYwjUryXnGzasMzC1xUsj9UGDeF9MnokUIr7cYJ WXcdiwSVxeplLii/ShN/sTz1PZubrylBenPHcj2DUALMxv47Gs+60oEHglHB8f+XzU igTR5rYuP6SBjluumP3oH83BN6lrmnLjvWq2ppnA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Krzysztof Kozlowski , Arnd Bergmann , Sasha Levin Subject: [PATCH 5.10 190/243] ARM: exynos: add missing of_node_put for loop iteration Date: Mon, 19 Jul 2021 16:53:39 +0200 Message-Id: <20210719144947.051920274@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210719144940.904087935@linuxfoundation.org> References: <20210719144940.904087935@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: Krzysztof Kozlowski [ Upstream commit 48d551bf20858240f38a0276be3016ff379918ac ] Early exits from for_each_compatible_node() should decrement the node reference counter. Reported by Coccinelle: arch/arm/mach-exynos/exynos.c:52:1-25: WARNING: Function "for_each_compatible_node" should have of_node_put() before break around line 58. Fixes: b3205dea8fbf ("ARM: EXYNOS: Map SYSRAM through generic DT bindings") Signed-off-by: Krzysztof Kozlowski Acked-by: Arnd Bergmann Link: https://lore.kernel.org/r/20210425174945.164612-1-krzysztof.kozlowski@canonical.com Signed-off-by: Sasha Levin --- arch/arm/mach-exynos/exynos.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-exynos/exynos.c b/arch/arm/mach-exynos/exynos.c index 700763e07083..83d1d1327f96 100644 --- a/arch/arm/mach-exynos/exynos.c +++ b/arch/arm/mach-exynos/exynos.c @@ -55,6 +55,7 @@ void __init exynos_sysram_init(void) sysram_base_addr = of_iomap(node, 0); sysram_base_phys = of_translate_address(node, of_get_address(node, 0, NULL, NULL)); + of_node_put(node); break; } @@ -62,6 +63,7 @@ void __init exynos_sysram_init(void) if (!of_device_is_available(node)) continue; sysram_ns_base_addr = of_iomap(node, 0); + of_node_put(node); break; } } -- 2.30.2