Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3409730rwa; Tue, 23 Aug 2022 04:25:37 -0700 (PDT) X-Google-Smtp-Source: AA6agR4LtThChRwwaQDO/nnv2Agjy6iHT5CYFVIizNTmxp2gCPh+5rWy9KWJrLxGaOy6du5zAl+8 X-Received: by 2002:a17:90a:ee88:b0:1fa:aac3:6fb7 with SMTP id i8-20020a17090aee8800b001faaac36fb7mr2845291pjz.62.1661253937391; Tue, 23 Aug 2022 04:25:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661253937; cv=none; d=google.com; s=arc-20160816; b=eyNx9XNBsXeKBpmZ1dTMPqZ3BEprFe37uefsBIsVRght2Mqa6NmAP3GI0pC3bjdqYh bUtu3/i2N59mOUfkpTYQr00QuMZXfXizBZSs3AaeR9h4+KmBHK7/sNic1zBXTW1dMFjj OpkE73DQ1EDoSHKwGslCBZ2TGfbCTTU7fvk77bAhbo+aPLbqcsWeB0Vqf8ZoM7Eeu1py y1miRguzNGImsBQrXy+wfzwTazD9SoVZnQgsM6yToGOkr4HO43NwcZKbWwhqHFVxacG4 FcydUFNzO2GyG5F3P0YgKUW5v3WwquRAETTckNm+7q/jDzUEkEuYybxoQiR9Ni+7RlT5 VS1Q== 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=CQN1IoSeCYD5z1dmMx4vqDcZQqVSGUdtDok5M56ZZT0=; b=y3+G+n6VCHlAloV9BFNs3uy2CzQz2H7aiok/0qkMNY6OkUa5sCMe/VZzQaHUjdCH14 dOatkU3KPD8zDOSX45uZ0DvdARKPJ8kZd0knoKrw5mFbyeu2cAjNYalsNYapVtbHyboB qLQNV8bSFUiuIdsRNCh7liaG5XIYdm/cvpb20TPyXaoHG7fWFMYEw4qxeaOPTzPuOo94 e1HL2REH7x1zjGsHIQRnWG98YrPyqltjd2GQ3TlYeAPGNsRnO2Y8bpmyK8zREIughTzY 4DRnH00N5eWM253q8FWMH9tWHwtNaSugomRO84iFaavEue+dch/Ul+nsaGXDxz464dq/ dm3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Bpwo9tDN; 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 o12-20020a1709026b0c00b001728fede5c1si11912294plk.174.2022.08.23.04.25.26; Tue, 23 Aug 2022 04:25:37 -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=Bpwo9tDN; 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 S1355589AbiHWKgd (ORCPT + 99 others); Tue, 23 Aug 2022 06:36:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354540AbiHWKVm (ORCPT ); Tue, 23 Aug 2022 06:21:42 -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 64ED582760; Tue, 23 Aug 2022 02:02:59 -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 EBB92B81C54; Tue, 23 Aug 2022 09:02:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 44554C433D6; Tue, 23 Aug 2022 09:02:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661245376; bh=Bj8CgMYA2fxI+RpD8jD7zNYFs0yEL1HzpHHAhRb91yQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Bpwo9tDNn1vU+qYyxtMu6Qsf31JTNSToqHkU8swsJ2yvg8A0ljzg9m3o+k2ACtDdA hYHv4MkInfjGvIcnEV5m+oTMyt65z4XL2MU2/52Qkj/AHY1Un9la0NaW2wmdPWWwcq 25vnC3jKEyyopzucG1HSfKMSscXBlIg8/Q3JeiPo= 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 4.19 059/287] ARM: OMAP2+: Fix refcount leak in omap3xxx_prm_late_init Date: Tue, 23 Aug 2022 10:23:48 +0200 Message-Id: <20220823080102.224716596@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080100.268827165@linuxfoundation.org> References: <20220823080100.268827165@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 dfa65fc2c82b..30445849b5e3 100644 --- a/arch/arm/mach-omap2/prm3xxx.c +++ b/arch/arm/mach-omap2/prm3xxx.c @@ -711,6 +711,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