Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp555911iog; Fri, 17 Jun 2022 08:35:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tigc4n3wNDvzR8/GWSJOgdmoXIUg21lDtfjXxzC8bBzt08hIkIwsehtPu7XJhsmuLWvyyh X-Received: by 2002:a17:90b:3b88:b0:1e6:7aa2:4301 with SMTP id pc8-20020a17090b3b8800b001e67aa24301mr21887830pjb.118.1655480127128; Fri, 17 Jun 2022 08:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655480127; cv=none; d=google.com; s=arc-20160816; b=bKsl3z4Iib4tKrd5TM9BH5jApkxYvY89Dxt5wj/mH9wLXZgjghF8oTkusKE9jIxyY4 liCo0+Vzo+R42OGPBvE9FjVoL+7PwHN8Y9ngcZk82cPU+a+fDF+C9o1uVPey7FCnjq9w b5Fuh3ga7OdXLqUcZQe2L+0bTS0Q+SS2qTbbmC8KhmjSIp0zjj7f7ZHpULzY0AJJSyU+ eTHD5TABgw1B5TIkQeY2kfqSCR+XkF+uPgMfD6qTF5+sdhJIVIM/R3A+x6br+w6q8C/6 zPUW8LDr04e89Pt9bHbjgoZTwebmTDT0wyHAReDpUMlIq/+I1nnO1n4/OfIseu2EQlk9 Nj9w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=C9dWwlJTkPVFPy+ldljG5siVelWvaG/RDmrjHzyN2Zg=; b=LLdn+wl4VZ/PCX/1tH2RNSeGMKksdhreRX5V3EAMnzf2x0oOsXQi0YMrAPCtglqJkx L4MtOs+Jjs07f4scB5V3C+hwE21tNBEBZ4aj7isv4lUqilY6Ey48Et9nGCZ9sUkqRIBS 5anOF74ksuy4e9WalgmQlc19Z+aKCy4cQEylSVFs5up41J1jG25iqxR3Cm37LT/+q11Y pydQXLE4IQsBhllohdIlLCY+1GruU+qXqOKcbuSCk35gZh8YjwhA8gkL+cqBwSIMD0S7 0N1KRLTVE1adWvec0Zce1I/2SpkEImna6nowiXUVMCduUsjbndY+vlz17j1CV6NnQVMe ZWSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=hAXLU8E4; 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=126.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r89-20020a17090a43e200b001e2eb4381dfsi9192125pjg.84.2022.06.17.08.35.07; Fri, 17 Jun 2022 08:35:27 -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=@126.com header.s=s110527 header.b=hAXLU8E4; 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=126.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382946AbiFQO6i (ORCPT + 99 others); Fri, 17 Jun 2022 10:58:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382980AbiFQO6f (ORCPT ); Fri, 17 Jun 2022 10:58:35 -0400 Received: from mail-m964.mail.126.com (mail-m964.mail.126.com [123.126.96.4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 21B132ED43; Fri, 17 Jun 2022 07:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=126.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=C9dWw lJTkPVFPy+ldljG5siVelWvaG/RDmrjHzyN2Zg=; b=hAXLU8E4EYCHfu1gvSvXw cO29KcVRNG2xee1bodrA6D47p5dfuioG1eSWcthuLIWZ9jVBIYh9cTRmAuPPK6QN v1TUMAGb9vOQ0JPCk7odkc3v3aZT/CcrBalAa2+g5tcXYAQBwnGsaZCiZj19ohMo TEUANFnJ17TPnxRBZDa0ZA= Received: from localhost.localdomain (unknown [124.16.139.61]) by smtp9 (Coremail) with SMTP id NeRpCgBncrd8lqxiCpXrEw--.40452S2; Fri, 17 Jun 2022 22:58:05 +0800 (CST) From: Liang He To: tony@atomide.com, linux@armlinux.org.uk Cc: windhl@126.com, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: mach-omap2: display: Fix refcount leak bug Date: Fri, 17 Jun 2022 22:58:03 +0800 Message-Id: <20220617145803.4050918-1-windhl@126.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: NeRpCgBncrd8lqxiCpXrEw--.40452S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrZF4fWry3Gry7Cr4UZr15XFb_yoW3GFc_tw n3Xw1fJryrta1vg3yDur4rWrsYqw45Gr17Xr92qF12ka12qF17ZrWjywn2qrWUWFWYyrW3 Cr97GFy5CwsrJjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7xRtgAwDUUUUU== X-Originating-IP: [124.16.139.61] X-CM-SenderInfo: hzlqvxbo6rjloofrz/1tbi7R0jF1pEAOCisQAAsp X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 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 --- 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 21413a9b7b6c..eb09a25e3b45 100644 --- a/arch/arm/mach-omap2/display.c +++ b/arch/arm/mach-omap2/display.c @@ -211,6 +211,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.25.1