Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2929616rwb; Mon, 15 Aug 2022 14:15:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR6iTJPlkhw1KiEfnw3WJ4piUDa64nr/C4qj6suYQk8Okr6vOVjWWc/yHj3Cwndein10jfI3 X-Received: by 2002:a17:90b:3849:b0:1f4:89bb:14dc with SMTP id nl9-20020a17090b384900b001f489bb14dcmr20644716pjb.144.1660598000945; Mon, 15 Aug 2022 14:13:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598000; cv=none; d=google.com; s=arc-20160816; b=c7dDB0+Rp7HFwj1+8y6iWxeAIm9maMe5FZIr9uDlUEZKOBRPoh5wWeOC0Hn7Y8lKmg Cn/fXY8MTlx0wozBvd+EoLyCZ4sIviec7rCcqJ9tuxyQ8dHmk49Ti2FZI9oGGZ8AJfKj opDSm7CxGm8dkCN2TPDj4vhGB6XZKaHEcbkgxCM5HVq+02LSkSou4vI4eMi6u6wMT1Li t5zQ6GTIfB3WPY1fpP73XfX5g/O84qbLpxKfhYucIusWrcLLIpgbKgRS13MP3m2gUSaT tVj1HtwK68BG0O6okdwrBp9KDrUQVKDw28C9sIpmDAeBXAmvHisDFwg38eFs63dqumN4 uZEQ== 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=ZOrrQR35UAwprURGpCBThIyKdMEjBW4tLuTQyiXNMTef3St20CaOhO9r2BC/YpHuQg ZZZbBD0yhNbD3UqeTspUYGcROV+2llc8cAYiv28suB1pE69ln4O9zENlP89lA6+tZqQn wwfQIiUJdXAfVIETrxBk69QTs/kPderS2MQTGmJd5hNrv3GinRNGwUQw+D3OHIi2BQtk tk7M+uR9RjcaJlxPX6Zzqvm7YGgYWhJORK2s6zLk2f/zSvHekZdeFZ4glspeKjNwtZXP tvKh7ntHtikpK9espVPBNryhkt+zkof2pxHLOIKrG5aQXiQ2IRC/nRz6LIjJuLsMyVY0 io3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LZK8QbIZ; 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 hk7-20020a17090b224700b001f5858ef01fsi8275161pjb.17.2022.08.15.14.13.08; Mon, 15 Aug 2022 14:13:20 -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=LZK8QbIZ; 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 S1345415AbiHOUfM (ORCPT + 99 others); Mon, 15 Aug 2022 16:35:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40436 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347639AbiHOUb2 (ORCPT ); Mon, 15 Aug 2022 16:31:28 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A92FDA5C7D; Mon, 15 Aug 2022 12:04:54 -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 ams.source.kernel.org (Postfix) with ESMTPS id 812D1B81106; Mon, 15 Aug 2022 19:04:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9170C433D6; Mon, 15 Aug 2022 19:04:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590291; bh=omZ20BVuFxL1W05Lz9Iqe5y6+N9MFAhSKFKp3+JoWnQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LZK8QbIZMS5dVFjm8lxfskJBfEH5meKSNRBrGYppXNvQtX5kYR/Xx47X63DJOwqTR C3Lx2JGLw2VUhxD6eDjYEqPmwxRX5CJYSL/fjPPeRzivxCK3tPhum7pUcpaLZ1R0eT iwHb3i5Y/A0rXEVJ737GNxwKskIgnFB/Mx4yP/Sk= 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.18 0214/1095] ARM: OMAP2+: Fix refcount leak in omap3xxx_prm_late_init Date: Mon, 15 Aug 2022 19:53:33 +0200 Message-Id: <20220815180438.524821462@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@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