From: Dan Carpenter Date: Mon, 20 Dec 2010 21:34:56 +0000 (+0000) Subject: stmmac: unwind properly in stmmac_dvr_probe() X-Git-Tag: v2.6.38-rc1~476^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=34a52f363ab6bcf6d50a65c153dec03f3fb32653;p=pandora-kernel.git stmmac: unwind properly in stmmac_dvr_probe() The original code had a several problems: *) It had potential null dereferences of "priv" and "res". *) It released the memory region before it was aquired. *) It didn't free "ndev" after it was allocated. *) It didn't call unregister_netdev() after calling stmmac_probe(). Signed-off-by: Dan Carpenter Signed-off-by: David S. Miller --- Reading git-diff-tree failed