commit | 34a52f363ab6bcf6d50a65c153dec03f3fb32653 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Mon Dec 20 21:34:56 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Tue Dec 21 10:53:19 2010 -0800 |
tree | 62a84a17730b64c692ac788354cb1ae6913087b3 | |
parent | 4b97f8e10893e2c8f64a2795901bdb447a3308f4 [diff] |
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 <error27@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>