Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3020763rwb; Mon, 15 Aug 2022 16:17:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR6RX15nBzNcVY1NMehvMlygw5H3PhBixprojWuSCXYyBcnrgBTiAHRsvhlvr6Z5SD66RIi2 X-Received: by 2002:a50:fe91:0:b0:43d:c97d:1b93 with SMTP id d17-20020a50fe91000000b0043dc97d1b93mr16765353edt.67.1660605474207; Mon, 15 Aug 2022 16:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660605474; cv=none; d=google.com; s=arc-20160816; b=Y7uBBPr3B+9xh96pSRVMXR8l4QEYImubjgMTyLbH2m3ru0aR2oEtGdvJYwqjv/fVjM X8I/9nUAfa8YOMJalh7pOKvLiuEVHBonx+sR1N/XUnJdpwTGFcsl5CYRuD3+d/kQqt5V gv2ih1zKaqJfs/6lackucW+pT2iVVn4sIOZh6NPS8RU2sTewmF3mDjei96iRz7WsbmHS hfvM5C04hyDx8Hslsn7ywjBKnVyhvmTQADsPzvFBFtsoyyAsBLc/kDYjsmh2dz+GhpuV P4EWbQRKjPMKmUteY/zH8lQVvGNHQChaJdGEVuTQu6pgUK+B/hFyQIxD7gS2fP0xe6d0 xGKw== 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=brMxCyYe6+EmwL6bYKqBetR9gDWAjz2ncdlNGOfBvGE=; b=JDBVzrpkY+YMQN23VfhjNlfL1M1x1wBLwoNRuKrJKDDdJUuQ82zGieYpN97Dnr8jL1 tgLZ3wFYkMrSF0lZWP9U4yjrWqxKLa5/0JuS2T9yUlptE2gJb/6EPikFzMHWseO+oYR7 5ubSTAvnviIuLHFPQeQdhhdDt6G1/JXAubyupQRTujrZQY2CQaO5OLD3ESW3gfQkrVXJ DFKdUgEUDDu7m2Vn4B0tKNagwUD2dzYsLvhcOEzu9zmnESmuYADE/be1x2KssQLs9G2d 6KqgpuEQQEniyp7FRJYRlX6aw8nHai0NTOMROL3xp/5jQS/49ccD6Mos+FgRxajUChrp iEEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LjHDDuP+; 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 sd6-20020a170906ce2600b0072f0356abc7si7003823ejb.109.2022.08.15.16.17.28; Mon, 15 Aug 2022 16:17:54 -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=LjHDDuP+; 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 S1351909AbiHOWtt (ORCPT + 99 others); Mon, 15 Aug 2022 18:49:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352055AbiHOWrn (ORCPT ); Mon, 15 Aug 2022 18:47:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBC67135AD8; Mon, 15 Aug 2022 12:53:20 -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 5BBB16122B; Mon, 15 Aug 2022 19:53:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 63D82C433D6; Mon, 15 Aug 2022 19:53:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660593199; bh=omZ20BVuFxL1W05Lz9Iqe5y6+N9MFAhSKFKp3+JoWnQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LjHDDuP+Z2xP2SP4JlUva7mkOsiTZsL/fJ6z0YIYX27c232NAWOFTSiZhzZLe6d6Z 7+h4UwafHx2WplsvaPwBqZav0rntjSjkmtcQccjVkYo71aa75HkYX6sZL8roswU+UR ufgeZ367EE/rTaG7zqs9JYVmATbOa19Wi+u+V+Rs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Tony Lindgren , Sasha Levin Subject: [PATCH 5.19 0229/1157] ARM: OMAP2+: Fix refcount leak in omap3xxx_prm_late_init Date: Mon, 15 Aug 2022 19:53:05 +0200 Message-Id: <20220815180448.736280735@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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: Miaoqian Lin [ Upstream commit 942228fbf5d4901112178b93d41225be7c0dd9de ] of_find_matching_node() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. Fixes: 1e037794f7f0 ("ARM: OMAP3+: PRM: register interrupt information from DT") Signed-off-by: Miaoqian Lin Message-Id: <20220526073724.21169-1-linmq006@gmail.com> Signed-off-by: Tony Lindgren Signed-off-by: Sasha Levin --- arch/arm/mach-omap2/prm3xxx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-omap2/prm3xxx.c b/arch/arm/mach-omap2/prm3xxx.c index 1b442b128569..63e73e9b82bc 100644 --- a/arch/arm/mach-omap2/prm3xxx.c +++ b/arch/arm/mach-omap2/prm3xxx.c @@ -708,6 +708,7 @@ static int omap3xxx_prm_late_init(void) } irq_num = of_irq_get(np, 0); + of_node_put(np); if (irq_num == -EPROBE_DEFER) return irq_num; -- 2.35.1