From: Florian Fainelli Date: Sun, 20 Jun 2010 22:07:48 +0000 (+0000) Subject: cpmac: do not leak struct net_device on phy_connect errors X-Git-Tag: v2.6.35-rc4~54^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed770f01360b392564650bf1553ce723fa46afec;p=pandora-kernel.git cpmac: do not leak struct net_device on phy_connect errors If the call to phy_connect fails, we will return directly instead of freeing the previously allocated struct net_device. Signed-off-by: Florian Fainelli CC: stable@kernel.org Signed-off-by: David S. Miller --- Reading git-diff-tree failed