[PATCH net-next 2/2] net: ixp4xx_hss: fix OF node leaks in ixp4xx_hss_probe()
Linus Walleij
linusw at kernel.org
Tue Nov 17 13:23:14 PST 2026
On Tue, Nov 10, 2026 at 8:08 AM zhaofeng2
<zhaofeng2 at cmss.chinamobile.com> wrote:
> From: Zhao Feng <zhaofeng2 at cmss.chinamobile.com>
>
> ixp4xx_hss_probe() resolves the NPE and the six TX/RX queue phandles
> with of_parse_phandle_with_fixed_args(), which takes a reference on
> the resolved device node, but the references are never dropped, so
> the NPE and queue manager device nodes are leaked on every probe.
>
> Drop the references with of_node_put() once the phandle argument has
> been consumed.
>
> Fixes: 35aefaad326b ("net: ixp4xx_hss: Convert to use DT probing")
> Signed-off-by: Zhao Feng <zhaofeng2 at cmss.chinamobile.com>
Reviewed-by: Linus Walleij <linusw at kernel.org>
Yours,
Linus Walleij
More information about the linux-arm-kernel
mailing list