aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2021-12-26 17:51:44 +0000
committerDavid S. Miller <[email protected]>2021-12-28 12:16:34 +0000
commit1cd5384c88af5b59bf9f3b6c1a151bc14b88c2cd (patch)
treebd55bb91ba242ae10b754ccc4ce110e46660ea17 /drivers/net/ethernet/intel/igc
parentmISDN: change function names to avoid conflicts (diff)
downloadkernel-1cd5384c88af5b59bf9f3b6c1a151bc14b88c2cd.tar.gz
kernel-1cd5384c88af5b59bf9f3b6c1a151bc14b88c2cd.zip
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc')
0 files changed, 0 insertions, 0 deletions