Files
twx-linux/drivers
Nathan Rossi a348e106fc net: ethernet: aquantia: Handle error cleanup of start on open
[ Upstream commit 8a28af7a3e ]

The aq_nic_start function can fail in a variety of cases which leaves
the device in broken state.

An example case where the start function fails is the
request_threaded_irq which can be interrupted, resulting in a EINTR
result. This can be manually triggered by bringing the link up (e.g. ip
link set up) and triggering a SIGINT on the initiating process (e.g.
Ctrl+C). This would put the device into a half configured state.
Subsequently bringing the link up again would cause the napi_enable to
BUG.

In order to correctly clean up the failed attempt to start a device call
aq_nic_stop.

Signed-off-by: Nathan Rossi <nathan.rossi@digi.com>
Reviewed-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-04-07 12:47:01 +02:00
..
2021-01-23 15:48:42 +01:00
2020-12-29 13:47:02 +01:00
2021-03-03 18:22:45 +01:00
2021-03-07 11:27:44 +01:00
2021-04-07 12:47:01 +02:00