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.27.49~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a9e5fa66baa4dfd6bc366fbe84b172c6da9321b;p=pandora-kernel.git cpmac: do not leak struct net_device on phy_connect errors commit ed770f01360b392564650bf1553ce723fa46afec upstream. 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 Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed