From: Uwe Kleine-König Date: Thu, 7 Aug 2014 21:06:00 +0000 (+0200) Subject: net: fs_enet: fix reference counting for phy_node X-Git-Tag: omap-for-v3.17/fixes-against-rc2~76^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=129cc83a0b7ed9429d896e4f215d1f6a8c58ba40;p=pandora-kernel.git net: fs_enet: fix reference counting for phy_node 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed