diff options
author | Dan Carpenter <error27@gmail.com> | 2010-12-20 21:34:56 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-21 18:53:19 (GMT) |
commit | 34a52f363ab6bcf6d50a65c153dec03f3fb32653 (patch) | |
tree | 62a84a17730b64c692ac788354cb1ae6913087b3 /drivers/eisa | |
parent | 4b97f8e10893e2c8f64a2795901bdb447a3308f4 (diff) | |
download | linux-34a52f363ab6bcf6d50a65c153dec03f3fb32653.tar.xz |
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>
Diffstat (limited to 'drivers/eisa')
0 files changed, 0 insertions, 0 deletions