Skip to content
Commit 2f8a786f authored by Sun Ke's avatar Sun Ke Committed by Jakub Kicinski
Browse files

net: dsa: microchip: lan937x: fix reference count leak in lan937x_mdio_register()



This node pointer is returned by of_find_compatible_node() with
refcount incremented in this function. of_node_put() on it before
exitting this function.

Fixes: c9cd961c ("net: dsa: microchip: lan937x: add interrupt support for port phy link")
Signed-off-by: default avatarSun Ke <sunke32@huawei.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220908040226.871690-1-sunke32@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 42666b2c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment