Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2810855rwb; Mon, 15 Aug 2022 11:48:55 -0700 (PDT) X-Google-Smtp-Source: AA6agR5FUasRrf+ihiiDgbZjibQNdox2kb6qNzi5Th8Tedwn3S7TxWLuj740ljjSC6lH3BFzHSaJ X-Received: by 2002:a17:907:7389:b0:732:fc99:cf6a with SMTP id er9-20020a170907738900b00732fc99cf6amr11050072ejc.335.1660589335172; Mon, 15 Aug 2022 11:48:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660589335; cv=none; d=google.com; s=arc-20160816; b=amRbjSG7A5AjrUFzQvwXxYe8u+VRqm9B/EIxWmuWRNMdn8/YfEofcWJaUjakMaLyTR V42jfLBpAmIiJj1mXfMM8t1vaP3wLBlBEAb1NFo7V/j13a+9meAuve6b8C1Gv1iGff/L aL0pJWXUmR0I30rRt/+NfqVuBz9uzylIh02fXpcXrfnPpc+8eBYTPSRbTFRih9Q1VdFv BLkDTirWLDbxU2qwttiaFObc2K/9GugtPcgp4inCpFwFq5iY85vPqrGuY8CjqxguxMYa NmZvQ0aQWaW4bDxrcuME7O04Qmz/oy4znNrkjJK1obMPyxEhnpHsGtSmVTdNNbPdtAsl rUBg== 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=iLyoZ3wTy0OsRckbG1x/73vHBFznlPoG+mmfkKp4J7xrCNnUp7g5EwiOImBFu4jdcT X+IZyS7CqL96hfpDQ+NErNZ6Kj3NPRBXiWMNn2W52l+sTfUgKehs9XHHUWkQulmT3O+d 9nhyigUrjzhAIlbXg5cG9SEbt4ZdHUIIa46xdg7WDkTaDBjGgpHw5yCcE09xSSRlkGFQ fIypvSXIuYWjvoO/UbvWAQnYZQrAJ+AWTVX9KtvrtuB+5EE620IMi8pmyesZsyX4ko08 6E1NABNqKCB6mpYzlqxmVYiu83jIAP45HtzjeajOeoQpw4nx2Ph57DOvicxMCuSN+zrt PaiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=PAFdRmqW; 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 a12-20020a170906190c00b0073317d6b047si6651722eje.569.2022.08.15.11.48.29; Mon, 15 Aug 2022 11:48:55 -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=PAFdRmqW; 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 S243795AbiHOShM (ORCPT + 99 others); Mon, 15 Aug 2022 14:37:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243692AbiHOSez (ORCPT ); Mon, 15 Aug 2022 14:34:55 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5C2643A491; Mon, 15 Aug 2022 11:22:27 -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 6646D60C07; Mon, 15 Aug 2022 18:22:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DFB8C433D6; Mon, 15 Aug 2022 18:22:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660587745; bh=omZ20BVuFxL1W05Lz9Iqe5y6+N9MFAhSKFKp3+JoWnQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PAFdRmqWxsiMu9jH4TyOs+HzDd/qfUs7bcKNUGKA/HBv6t7SlBRzXMPdvzaw1FgpA a5pHQ8G6uayYxRAmnTAzBJt+8Q9ysup48PvXGaV4e1u+o6wX8bmIgoS/ODUyDdHmox KcM9za54LdIYaeSwr0Xu9BZfUOQRLIuOZACK8yYE= 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.15 181/779] ARM: OMAP2+: Fix refcount leak in omap3xxx_prm_late_init Date: Mon, 15 Aug 2022 19:57:05 +0200 Message-Id: <20220815180344.999225266@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180337.130757997@linuxfoundation.org> References: <20220815180337.130757997@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