Thread (2 messages) flat view 2 messages, 2 authors, 2014-08-07

Re: [PATCH] net: bcmgenet: fix reference counting for phy node

From: David Miller <davem@davemloft.net>
Date: 2014-08-07 23:07:09

From: Uwe Kleine-König <redacted>
Date: Thu,  7 Aug 2014 22:53:40 +0200
For the fixed phy setup make sure to not overwrite a valid value of
phy_dn (that is holding a reference to a phy-handle) and also acquire a
reference to the MAC node to consistently return with the phy_dn pointer
holding a reference.

Also add the corresponding of_node_put in the error path and the remove
function.

Fixes: 9abf0c2b717a ("net: bcmgenet: use the new fixed PHY helpers")
Fixes: aa09677cba42 ("net: bcmgenet: add MDIO routines")
Signed-off-by: Uwe Kleine-König <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help