diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-12-26 20:51:44 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-12-28 15:16:34 +0300 |
commit | 1cd5384c88af5b59bf9f3b6c1a151bc14b88c2cd (patch) | |
tree | bd55bb91ba242ae10b754ccc4ce110e46660ea17 /drivers/net/ethernet/ibm | |
parent | 8b5fdfc57cc2471179d1c51081424ded833c16c8 (diff) | |
download | linux-1cd5384c88af5b59bf9f3b6c1a151bc14b88c2cd.tar.xz |
net: ag71xx: Fix a potential double free in error handling paths
'ndev' is a managed resource allocated with devm_alloc_etherdev(), so there
is no need to call free_netdev() explicitly or there will be a double
free().
Simplify all error handling paths accordingly.
Fixes: d51b6ce441d3 ("net: ethernet: add ag71xx driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm')
0 files changed, 0 insertions, 0 deletions