Igor Russkikh 9a11aff25f net: aquantia: oops when shutdown on already stopped device
In case netdev is closed at the moment of pci shutdown, aq_nic_stop
gets called second time. napi_disable in that case hangs indefinitely.
In other case, if device was never opened at all, we get oops because
of null pointer access.

We should invoke aq_nic_stop conditionally, only if device is running
at the moment of shutdown.

Reported-by: David Arcari <darcari@redhat.com>
Fixes: 90869ddfefeb ("net: aquantia: Implement pci shutdown callback")
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-11 10:41:36 -04:00
..
2018-04-06 18:31:06 -07:00
2018-04-06 18:31:06 -07:00
2018-04-06 19:21:41 -07:00
2018-04-09 11:42:31 -07:00
2018-04-07 12:08:19 -07:00
2018-04-07 12:08:19 -07:00
2018-04-06 18:31:06 -07:00
2018-04-07 12:08:19 -07:00
2018-04-06 19:44:27 -07:00