linux-uconsole/drivers/net/hyperv
Haiyang Zhang 9a7c4f5acc hv_netvsc: Fix unwanted wakeup after tx_disable
[ Upstream commit 1b704c4a1b ]

After queue stopped, the wakeup mechanism may wake it up again
when ring buffer usage is lower than a threshold. This may cause
send path panic on NULL pointer when we stopped all tx queues in
netvsc_detach and start removing the netvsc device.

This patch fix it by adding a tx_disable flag to prevent unwanted
queue wakeup.

Fixes: 7b2ee50c0c ("hv_netvsc: common detach logic")
Reported-by: Mohammed Gamal <mgamal@redhat.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-04-17 08:38:39 +02:00
..
hyperv_net.h hv_netvsc: Fix unwanted wakeup after tx_disable 2019-04-17 08:38:39 +02:00
Kconfig hv_netvsc: drop common code until callback model fixed 2018-06-12 15:22:28 -07:00
Makefile hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
netvsc.c hv_netvsc: Fix unwanted wakeup after tx_disable 2019-04-17 08:38:39 +02:00
netvsc_drv.c hv_netvsc: Fix unwanted wakeup after tx_disable 2019-04-17 08:38:39 +02:00
netvsc_trace.c hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
netvsc_trace.h hv_netvsc: add trace points 2018-03-17 20:10:27 -04:00
rndis_filter.c hv_netvsc: Fix hash key value reset after other ops 2019-03-05 17:58:51 +01:00