[PATCH] net: thunder_bgx: Fix refcount leak bug in bgx_init_of_phy()

Jakub Kicinski kuba at kernel.org
Fri Jul 22 10:38:26 PDT 2022


On Fri, 22 Jul 2022 23:20:48 +0800 Liang He wrote:
> We should call of_node_put() for the reference returned by
> of_parse_phandle() in fail path or when it is not used
> anymore.
> 
> Fixes: eee326fd8334 ("net: thunderx: bgx: Use standard firmware node infrastructure.")
> Signed-off-by: Liang He <windhl at 126.com>

cc netdev@



More information about the linux-arm-kernel mailing list