From: Uwe Kleine-König Date: Thu, 7 Aug 2014 19:58:46 +0000 (+0200) Subject: net: mvneta: Fix reference counting for phy_node X-Git-Tag: omap-for-v3.17/fixes-against-rc2~76^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c891c24c62b376e508a45eeeb9f37e1b94173126;p=pandora-kernel.git net: mvneta: Fix reference counting for phy_node If there is a "phy" handle the probe function returns with holding a reference to that node. Make sure that in the fixed phy case there is also held a reference to yield a consistant state. Also add the corresponding of_node_put in the error path and the remove function. Fixes: 83895bedeee6 ("net: mvneta: add support for fixed links") Fixes: c5aff18204da ("net: mvneta: driver for Marvell Armada 370/XP network unit") Signed-off-by: Uwe Kleine-König Signed-off-by: David S. Miller --- Reading git-diff-tree failed