]> git.baikalelectronics.ru Git - kernel.git/commit
net: ena: fix potential double ena_destroy_device()
authorNetanel Belgazal <netanel@amazon.com>
Sun, 9 Sep 2018 08:15:23 +0000 (08:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 9 Sep 2018 14:59:55 +0000 (07:59 -0700)
commit281319e5b7a8b617207226cf20386fbc634dc321
treea4eea30f5fbaf240b6527854d960a723e2abeb3d
parentb5f4395f5e346b55a3b8d3a7fee788d2be383a24
net: ena: fix potential double ena_destroy_device()

ena_destroy_device() can potentially be called twice.
To avoid this, check that the device is running and
only then proceed destroying it.

Signed-off-by: Netanel Belgazal <netanel@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amazon/ena/ena_netdev.c