linux/drivers/net/ethernet/aquantia/atlantic
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: 90869ddfef ("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
..
hw_atl net: aquantia: Regression on reset with 1.x firmware 2018-04-11 10:41:36 -04:00
aq_cfg.h net: aquantia: Add tx clean budget and valid budget handling logic 2018-03-22 12:02:49 -04:00
aq_common.h net: aquantia: Introduce new AQC devices and capabilities 2018-01-21 18:19:03 -05:00
aq_ethtool.c net: aquantia: Fix typo in ethtool statistics names 2017-12-15 12:46:42 -05:00
aq_ethtool.h
aq_hw_utils.c net: aquantia: Change confusing no_ff_addr to more meaningful name 2018-01-21 18:19:03 -05:00
aq_hw_utils.h net: aquantia: Introduce firmware ops callbacks 2018-01-21 18:19:03 -05:00
aq_hw.h net: aquantia: Introduce global AQC hardware reset sequence 2018-01-21 18:19:04 -05:00
aq_main.c net: aquantia: Cleanup pci functions module 2018-01-21 18:19:03 -05:00
aq_main.h net: aquantia: Simplify dependencies between pci modules 2018-01-16 14:40:00 -05:00
aq_nic.c net: aquantia: oops when shutdown on already stopped device 2018-04-11 10:41:36 -04:00
aq_nic.h net: aquantia: Implement pci shutdown callback 2018-03-22 12:02:49 -04:00
aq_pci_func.c net: aquantia: Implement pci shutdown callback 2018-03-22 12:02:49 -04:00
aq_pci_func.h net: aquantia: Cleanup pci functions module 2018-01-21 18:19:03 -05:00
aq_ring.c net: aquantia: Add tx clean budget and valid budget handling logic 2018-03-22 12:02:49 -04:00
aq_ring.h net: aquantia: Add tx clean budget and valid budget handling logic 2018-03-22 12:02:49 -04:00
aq_rss.h
aq_utils.h net: aquantia: Cleanup status flags accesses 2018-01-16 14:40:00 -05:00
aq_vec.c net: aquantia: Add tx clean budget and valid budget handling logic 2018-03-22 12:02:49 -04:00
aq_vec.h net: aquantia: Eliminate aq_nic structure abstraction 2018-01-16 14:40:01 -05:00
Makefile net: aquantia: Introduce support for new firmware on AQC cards 2018-01-21 18:19:03 -05:00
ver.h net: aquantia: driver version bump 2018-03-22 12:02:49 -04:00