Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp969128iog; Fri, 17 Jun 2022 19:14:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vSghbEafcxOHsHv20LezUHNuE5cU/tukPiNpAfSqUTW6H4GdzuujSeV8lH42RrEiepJG/E X-Received: by 2002:a17:903:1209:b0:168:e42f:8709 with SMTP id l9-20020a170903120900b00168e42f8709mr12416935plh.99.1655518472367; Fri, 17 Jun 2022 19:14:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655518472; cv=none; d=google.com; s=arc-20160816; b=Kc7sbb7KHXZyVLsuhzUI2AAQds2YuLTLJWQdT6e3m2qEaPJaLNOJIMV3MXf5HNTS/s SD6y1CmI2sXMpWmaFL0AM1A43mhiz8Z0VCb+aHPYw4enyzCkEDnUeu0EwkSM2MEuYawP /W28znaU8cyz3iYqX5SKgUaKgIxE9sUL4gCBmo3ysPs1zvt7cnYquvR/wxlod5N4gws/ sJL6Y6jXgiBc1jEdwNd+mAItsZ+vt66Hp2YWgVqoy59jUhecRfUdbEqeEbsy6o2iPzm3 1oIf1M47yB7KWrL0IRboQlQnD+N1o938QF+d2Ac93YB5rQ0FyfdpaP6calwx40YHSbIu TwlA== 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=EAsCUKKeiwY5QLBCLD7SywZlE+l74qoFoWfMvGpQHv0=; b=SDbR4xdtQmwyWIrCl25iptaJLjdZEJVmb06S1MGs1jz04L2AY8VVxCvHlZ/b6zK859 rEjY/Eg8AZnKV+abhlh+RloCyHTpJDy3aYZTuF5cWStLuii5kKG0QdVFFWZW+JXh55Px SltOiDHnMk9HSliCEpo90BzkUAgxr6M1IYCHcB3DpJKWXQSevRyiL2oulxfY7JgshVMq o2EWCtDNd4gCILhH1p3NFiptyGXgxXR308FYA684aw/pwzqjHImUyFDFCA5iK4dlFLQt nH0AddoTKUUnG0xRAIbyhs/0t9KInPgkpXkfIyjQNf5KxY0bHI8t0JzOy6/YcDmGv/8/ HcNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@126.com header.s=s110527 header.b=cOVoDSiU; 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 n13-20020a170902e54d00b0015ce8cd506asi8591717plf.325.2022.06.17.19.14.19; Fri, 17 Jun 2022 19:14:32 -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=cOVoDSiU; 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 S1383797AbiFRCGg (ORCPT + 99 others); Fri, 17 Jun 2022 22:06:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230301AbiFRCGf (ORCPT ); Fri, 17 Jun 2022 22:06:35 -0400 Received: from mail-m963.mail.126.com (mail-m963.mail.126.com [123.126.96.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 852BF6BFCF; Fri, 17 Jun 2022 19:06: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=EAsCU KKeiwY5QLBCLD7SywZlE+l74qoFoWfMvGpQHv0=; b=cOVoDSiURhPxJq7MmGH7E 8id3oXGzTAyz7CAQsZzx4empc38ABwgfvJo23GS5zIbOnpFYoBpOypI7bzdvageo OPCo90Nk5ZHvC046/A3ejAzfiPBYbKqsDjInZLcMhICZ1SxcV9tnZdje1BuyBD0+ EEVseGHEwfTFyWoxJb3hmg= Received: from localhost.localdomain (unknown [124.16.139.61]) by smtp8 (Coremail) with SMTP id NORpCgCHGocMM61iFnKOFw--.45543S2; Sat, 18 Jun 2022 10:06:05 +0800 (CST) From: Liang He To: tony@atomide.com, linux@armlinux.org.uk Cc: windhl@126.com, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arm: mach-omap2: pdata-quirks: Fix refcount leak bug Date: Sat, 18 Jun 2022 10:06:03 +0800 Message-Id: <20220618020603.4055792-1-windhl@126.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: NORpCgCHGocMM61iFnKOFw--.45543S2 X-Coremail-Antispam: 1Uf129KBjvdXoWrtF1rtw13Cr4xGr45Aw13Arb_yoWxtFX_Xw n3Ka1xXrn3Jw4Iqr1Dtr4fGr1vvwsIgrsrW34IqFn0kayUXFy7Ar4qya92qFWDuFW5K3yY qr4kCw15u3W2gjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUyCJJUUUUU== X-Originating-IP: [124.16.139.61] X-CM-SenderInfo: hzlqvxbo6rjloofrz/1tbiuA0kF2JVj6tbagAAsk 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 pdata_quirks_init_clocks(), the loop contains of_find_node_by_name() but without corresponding of_node_put(). Signed-off-by: Liang He --- arch/arm/mach-omap2/pdata-quirks.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/pdata-quirks.c b/arch/arm/mach-omap2/pdata-quirks.c index 13f1b89f74b8..5b99d602c87b 100644 --- a/arch/arm/mach-omap2/pdata-quirks.c +++ b/arch/arm/mach-omap2/pdata-quirks.c @@ -540,6 +540,8 @@ pdata_quirks_init_clocks(const struct of_device_id *omap_dt_match_table) of_platform_populate(np, omap_dt_match_table, omap_auxdata_lookup, NULL); + + of_node_put(np); } } -- 2.25.1