Article View: linux.kernel.netdev
Article #14398Re: [PATCH net-next] net: dsa: hellcreek: fix device_node leak in hellcreek_led_setup()
From: patchwork-bot+netdevbpf
Date: Wed, 11 Nov 2026 05:50
Date: Wed, 11 Nov 2026 05:50
27 lines
9032 bytes
9032 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Dave Miller <davem@davem-thinkpadp1gen8.ibmlond.csb>:
On Fri, 06 Nov 2026 16:48:32 +0800 you wrote:
> hellcreek_led_setup() walks the two LED child nodes of the "leds" node
> with of_get_next_available_child(). The helper drops the reference on
> the child passed to it and takes one on the child it returns. After
> the second call the caller holds a reference on the second LED node.
>
> That reference is never dropped. The out: label only releases the
> "leds" node itself. Boards with both LED child nodes leak one
> device_node reference per probe, on the registration failures as well
> as on the success path.
>
> [...]
Here is the summary with links:
- [net-next] net: dsa: hellcreek: fix device_node leak in hellcreek_led_setup()
https://git.kernel.org/netdev/net-next/c/c4c470912125
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179437620468.720797.7079283265270004352.git-patchwork-notify@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360873-linux-kernel-netdev=dewy.ruReferences:
<1793954912000.3200.3087525628285919529@cmss.chinamobile.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360873-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next] net: dsa: hellcreek: fix device_node leak in hellcreek_led_setup() Date: Wed, 11 Nov 2026 05:50:04 +0000 Organization: Usenet Network Message-ID: <179437620468.720797.7079283265270004352.git-patchwork-notify@kernel.org> References: <1793954912000.3200.3087525628285919529@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="785456"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:NoAlF1Vm70R+iJxHk39nfHz3bf4= sha256:0NHVyXhaKPisZrzaHqhRAti8YP5dHgH5aYZI8+7k894= sha1:bPyQyEhsdoT9B5gU+37HqtUb+qA= sha256:yf8A1CKMwSG9pyJbSj+KoknVZ2Jn5HF2USxL4pUINlM= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 001CA113E29; Wed, 11 Nov 2026 08:50:38 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id exHkQRjtaQis; Wed, 11 Nov 2026 08:50:34 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-360873-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 3B274113BB1; Wed, 11 Nov 2026 08:50:26 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 3FA9F32882; Wed, 11 Nov 2026 05:50:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794376207; b=m43nVYGqyyguZukbSsP1g3HVQgsr4/2Oc8qlWt/H6N4rcpe0jcIegClDTKPlDHBI4h6f Sz4GTao7OWWufmt7ApANlCWChdqgYPDnnfJ80oJyKct8Fcj9j+Izs0jgKvKCl8dTBVcsU 6BIO4OjK/Z3qiykUsOop7nAIn9t/sbxSxn8iOF2MW/ZH16BxMIOtWsLJtjjVcDUd5bnLv TkyYMpxbLgQRJWt7mVtmaBhqnGp51KUefHc/yCkpT7BI1lsWO42i6WvReMbucWdR5mD5y Hi/YpcVghdRrOKl5oTEgiA1mR+cZ6tOrEbCBoV0dt+9fqIufLG5zHnQiqxsU5KnSvMg== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794376207; h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type: X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=ihQ7RalclwTtyciHdqTPG3ExDqIcbkjL04B6leMc4Zw=; b=vRmcGChTJ1+V8tnb04H9TI0jbzPO3OnPaJoMhgI8mKjiUjrWZTQja7yDnkRiD5dyS+sh IGx/M0gT4f3BOsP0p/otLfzdlCoKEr+1Lask58slJnqetFwYdfjzbvHeqETwGPk2vmE8R srXtwVf2Ratjn7p0dv/PcD1T+toEbsWekzW2+m2LONvoa/uYoKCSwYZDyNhN33kMqaA3j Bj6CE/whc/fulcDZ6zxykloSAuR8DSriYOeMJKaQXqzsI1mcqGXNHNjHbzNY4LMYZTzm4 Q/l6tmVcOABGT/jO9fHKP6V30WGKXwnKAqSyuqA2VONd21/Mmq23lwcq0msUCG2TgnA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="PBBs//GV"; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C222606A334; Wed, 11 Nov 2026 05:50:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=PBBs//GV X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794376206; b=ORVLGagThqVxg7ezMYAT8eCyAXzxeBwoFiob3ddzlon9Nt5F2CQc4OUKQVhWaUpBY2AM +XA+DmTb5Ldat0trYQkewNf2JFdetFHaLichA82ckxydu6Fp+kQQJYXvBG8eZUvTlFwI3 YtdB11eak1cSciy77t6V0diFLY2vm9Yyl94oDPDLBgTs8U/xHjDJpNuCjOXIVVknFRBlo mwvvKrW93ZXz60ixfeDkD4X96ixdYsCmd7UL0q2lwRtb26iU4HpxiKSvDrpxijnwGOK4/ g8jUzrAtGfVVhmmy2Mgz/DPPeRnuEj97mIgJKG3Proo+kpWYvc8qzc0YkuzM/rRkBiQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794376206; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=ihQ7RalclwTtyciHdqTPG3ExDqIcbkjL04B6leMc4Zw=; b=ACWCqVI+/LV/PksxqMQH+CivwhWUpvC6uaoDnIeBLH4lTxXdOmZwUypLek8o20YwDR0a Bp3GRA0r1i79BmYdDndeTqXRc8tctoVELVU2dKSFPd2uiiJxz56PT392s1dgdZg+iGfbD hXDemvEEzYDNu3EPZzff/ePTKd9NrlufMxYnHx7DhwZrbC8S3KGE63oNA2tPcejJZ0JOv rJTPx1vkpo+YsO6pZJoIZUpzwJA3BSUWUioSBJeaR940kiLKRwxcUwmrCHKXw8ss2frRl MEhNOyT3GyRViX6hrTAiCddVAWUdFtRrJi98JC6qi66way9Xg06ykEHWuApIBFQrZUw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b="PBBs//GV"; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 67C6F606A31C; Wed, 11 Nov 2026 05:50:06 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3A3E1F00A05; Wed, 11 Nov 2026 05:50:05 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794376205; bh=ihQ7RalclwTtyciHdqTPG3ExDqIcbkjL04B6leMc4Zw=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=PBBs//GVyZhTdSN3o9w8KrUVIg567RZm2G8lZAwXRlxjTbr6vctYMO/7GR0K/cRHD 9ygxOBlxxF9eGhWso1G0e8N3BEsrTBECoO8yL6VRcWaN751CsaJIavZGXIGSajiXdz IWJy7Lo55EkDWhCFAYUrsAwY7m8TjSEIqFRt+trowHUoSTtitt4ux4LbeWsXN/whX0 0Jcsow2dkGo4j2SF33j0kBiUFQZn6rT77F9Y3VtSCvoD3gTV3cDVb773PD77cYfloh PX7yMZDIn/NsdHLxSjEmD3kr09rJXE5c94A9Y4K9LPeKiwgrWOz4oyO8HTJQDfq+A/ xGLsH0lsq0gWA== X-Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id D81DE38007D4; Wed, 11 Nov 2026 05:50:05 +0000 (UTC) X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <1793954912000.3200.3087525628285919529@cmss.chinamobile.com> X-Cc: netdev@vger.kernel.org, kurt@linutronix.de, andrew@lunn.ch, olteanv@gmail.com, richardcochran@gmail.com, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, davem@davemloft.net, Pavel.Zhigulin@kaspersky.com, linux-kernel@vger.kernel.org, yana06070@163.com