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

Re: [PATCH] net: fs_enet: fix reference counting for phy_node

From: David Miller <davem@davemloft.net>
Date: 2014-08-07 23:07:18
Also in: linuxppc-dev

From: Uwe Kleine-König <redacted>
Date: Thu,  7 Aug 2014 23:06:00 +0200
Make sure that fs_enet_probe is left with a reference to the phy node.
In the presence of a phy handle this is already the case as
of_parse_phandle returns a reference. In the fixed phy case a call to
of_node_get is necessary. Otherwise the error path and remove function
drop a reference the driver isn't holding.

Fixes: bb74d9a4a87b ("fs_enet: use the new fixed PHY helpers")
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