From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 029F9CCA482 for ; Tue, 28 Jun 2022 02:29:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244610AbiF1C3h (ORCPT ); Mon, 27 Jun 2022 22:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244854AbiF1C2L (ORCPT ); Mon, 27 Jun 2022 22:28:11 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 616B62529F; Mon, 27 Jun 2022 19:26:56 -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 F332161932; Tue, 28 Jun 2022 02:26:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC267C341CC; Tue, 28 Jun 2022 02:26:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1656383215; bh=WQj+vlXUG9tNfMHNqFEpznWhZzUBGkgYCU7K18NUhuQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Oj/DUrP2E9c2IwhOVj21gXCOgVet69FFBOYy1lwLov25Vp4v0Gqt5anGTiKCegXyy 5Go5wRfc0jquIpfM5sNgzUYVjzpViepHoGbMCHhW+nHz3Wv05GCVZ736vyUt0swUzL R7w8DR5/Bm/5z7KeA72Axlg2+3jYNONkNuK68i8ODrDBUpXOCp1V3MNwGoVnIuzrJ7 oO0fs+nvNc+WuPJ+Wv4m1A0Q29Wfjg8ybUqLf0W67dg+bKsMRrNDLs89GCBgYe3pq4 D7TDxcccDb+Dn5bgQJkb9rm0zLSk00SR0dIM2knDVd//tl9yZyDIG8PdLnpLl66oLE xz+s89P+5cNTQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Liang He , Thomas Bogendoerfer , Sasha Levin , john@phrozen.org, linux-mips@vger.kernel.org Subject: [PATCH AUTOSEL 4.14 16/17] mips: lantiq: Add missing of_node_put() in irq.c Date: Mon, 27 Jun 2022 22:26:14 -0400 Message-Id: <20220628022615.596977-16-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220628022615.596977-1-sashal@kernel.org> References: <20220628022615.596977-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org From: Liang He [ Upstream commit 3748d2185ac4c2c6f80989672253aad909ecaf95 ] In icu_of_init(), of_find_compatible_node() will return a node pointer with refcount incremented. We should use of_node_put() when it is not used anymore. Signed-off-by: Liang He Signed-off-by: Thomas Bogendoerfer Signed-off-by: Sasha Levin --- arch/mips/lantiq/irq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/lantiq/irq.c b/arch/mips/lantiq/irq.c index 0476d7e97a03..6e3ace045b26 100644 --- a/arch/mips/lantiq/irq.c +++ b/arch/mips/lantiq/irq.c @@ -342,6 +342,7 @@ int __init icu_of_init(struct device_node *node, struct device_node *parent) if (!ltq_eiu_membase) panic("Failed to remap eiu memory"); } + of_node_put(eiu_node); return 0; } -- 2.35.1