From: Uwe Kleine-König Date: Thu, 7 Aug 2014 21:48:25 +0000 (+0200) Subject: net: ucc_geth: make probe consistently acquire a reference to the phy node X-Git-Tag: omap-for-v3.17/fixes-against-rc2~76^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1f02fa4f15bc682814c71fe05c6b76e5f5fba80;p=pandora-kernel.git net: ucc_geth: make probe consistently acquire a reference to the phy node When the driver attaches to a device that has a phy handle the probe routine returns with a reference to that node. This reference is correctly dropped in the error path and the remove function. In the fixed phy case however no reference is acquired and so the error path might drop a reference the driver isn't holding. Fix that by getting a reference to the MAC. Fixes: 87009814cdbb ("ucc_geth: use the new fixed PHY helpers") Signed-off-by: Uwe Kleine-König Signed-off-by: David S. Miller --- Reading git-diff-tree failed