aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/davicom
diff options
context:
space:
mode:
authorNetanel Belgazal <netanel@amazon.com>2018-09-09 08:15:24 +0000
committerDavid S. Miller <davem@davemloft.net>2018-09-09 07:59:56 -0700
commit944b28aa2982b4590d4d4dfc777cf85135dca2c0 (patch)
tree69520b05ade630919994b950735df930ade498c1 /drivers/net/ethernet/davicom
parentnet: ena: fix potential double ena_destroy_device() (diff)
downloadlinux-dev-944b28aa2982b4590d4d4dfc777cf85135dca2c0.tar.xz
linux-dev-944b28aa2982b4590d4d4dfc777cf85135dca2c0.zip
net: ena: fix missing lock during device destruction
acquire the rtnl_lock during device destruction to avoid using partially destroyed device. ena_remove() shares almost the same logic as ena_destroy_device(), so use ena_destroy_device() and avoid duplications. Signed-off-by: Netanel Belgazal <netanel@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/davicom')
0 files changed, 0 insertions, 0 deletions