Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3413482rwa; Tue, 23 Aug 2022 04:29:45 -0700 (PDT) X-Google-Smtp-Source: AA6agR78gumLBVZy8Wo8gx3eQ3WbYa6UTqMxz1pNtkcArT8HKxu/YQu7tEawYZRGUZNlvlK47y8/ X-Received: by 2002:a17:907:9483:b0:731:2be4:f73c with SMTP id dm3-20020a170907948300b007312be4f73cmr16724105ejc.380.1661254185316; Tue, 23 Aug 2022 04:29:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661254185; cv=none; d=google.com; s=arc-20160816; b=kbW/Wvj/fzInP0HBknzC2CwB09c0CV7VMR61nJnG/QYUV+E+VZiTZiKSMAaDJjDIdR 16YcZUPL+6FshFQFLmKiJynVubwNW1wtKfJLZ4pGilF60kOiKctvPZaWppsgrxNiv8PT IzsYrte8C9nT8hv1YxzQ9jwv07fV7DrehyVNtEA6p5K9UWwu1XnvLvk9eib7kM66v1Nt EGMI9+VF8o+Xv813pBR6dvvbPpw4T0SZZftN3VKFzyQhI/qLTvzbB4plQ9gFPv6P7pbf NuVq8MVtumVlXVFw6AdKlSye+AP0cvSDbwBsQYapo63vh+ZY1dAZEzi3+lCaqKMekdRo OtYA== 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=Yqn634h6i8zbEIBOb81OaUOXtoIu5ebkErFIUaijIMc=; b=l7BvqmKDR+8BBqfgeACwELNjBUv4Uz11LkUq3+Ioe/hcYHQT31hWp/uBFvy6Y03J4Y LJVJ9OaTlnv6uWAv+hB5maagsGFUWyznw44O5uOGMi0JXpcp9CiXzHNSnRGmZYuH8rMX sXmROvwHnFIYk+Y+TMjWdUtxSD7hFCYNsRk/qU2el0iqNxM3wwtEAybVSPy3v1PKLdi2 eW3Y4/X9pyoRQSzLk6VBpFJSZb9oKLmuP1MTy5ansjpUYnTmBfqYoqP0gREjPoGiAd94 RQcpBwt3t65tqTx1irGTgpIPjmtDjcWzP/xp+ohyxyWPiKTjsgZQiIMqW4zhxIJY+U9Q yb5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AInPgHz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id oz10-20020a1709077d8a00b0073056870528si10980355ejc.888.2022.08.23.04.29.19; Tue, 23 Aug 2022 04:29:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AInPgHz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S1350902AbiHWJeK (ORCPT + 99 others); Tue, 23 Aug 2022 05:34:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350664AbiHWJca (ORCPT ); Tue, 23 Aug 2022 05:32:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0469012D19; Tue, 23 Aug 2022 01:38:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3D89B6152E; Tue, 23 Aug 2022 08:37:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4B78DC433D6; Tue, 23 Aug 2022 08:37:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243856; bh=x599Q0uNqhEXX/zTlqbs0/t9r9wM0qizRo+Y0uYiNVs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AInPgHz3zYSXCFUL7W92MFR8Aj+jBVrFIWWLSBhDJRcr/HJF+s29+CzFg+Pvby8aP cZCnl19o6CE6CN9P0dSzbF9t5fGgTeADtxpu+nRlLTd0Q7SWnciCb8r/MNYCRcNhAG hJFP3C6+SIhvKfSViYXjRitoyeSEdQCsz/WVn580= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Liang He , Tony Lindgren , Sasha Levin Subject: [PATCH 4.14 044/229] ARM: OMAP2+: display: Fix refcount leak bug Date: Tue, 23 Aug 2022 10:23:25 +0200 Message-Id: <20220823080055.198391821@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080053.202747790@linuxfoundation.org> References: <20220823080053.202747790@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liang He [ Upstream commit 50b87a32a79bca6e275918a711fb8cc55e16d739 ] In omapdss_init_fbdev(), of_find_node_by_name() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Signed-off-by: Liang He Message-Id: <20220617145803.4050918-1-windhl@126.com> Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/display.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/display.c b/arch/arm/mach-omap2/display.c index 6e7440ef503a..b01b7515b6cc 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -218,6 +218,7 @@ static int __init omapdss_init_fbdev(void) node = of_find_node_by_name(NULL, "omap4_padconf_global"); if (node) omap4_dsi_mux_syscon = syscon_node_to_regmap(node); + of_node_put(node); return 0; } -- 2.35.1