From: Lothar Waßmann Date: Wed, 7 Dec 2011 21:59:31 +0000 (+0000) Subject: net/fec: fix the .remove code X-Git-Tag: v3.3-rc1~182^2~295 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e163cc97f9ac169f00e86df57bee365e82e9c365;p=pandora-kernel.git net/fec: fix the .remove code The .remove code is broken in several ways. - mdiobus_unregister() is called twice for the same object in case of dual FEC - phy_disconnect() is being called when the PHY is already disconnected - the requested IRQ(s) are not freed - fec_stop() is being called with the inteface already stopped All of those lead to kernel crashes if the remove function is actually used. Signed-off-by: Lothar Waßmann Tested-by: Shawn Guo Acked-by: Shawn Guo Signed-off-by: David S. Miller --- Reading git-diff-tree failed