linux/drivers/net/ethernet/amd
Sebastian Andrzej Siewior 10cea886f0 amd-xgbe: Use __napi_schedule() in BH context
[ Upstream commit d518691cbd ]

The driver uses __napi_schedule_irqoff() which is fine as long as it is
invoked with disabled interrupts by everybody. Since the commit
mentioned below the driver may invoke xgbe_isr_task() in tasklet/softirq
context. This may lead to list corruption if another driver uses
__napi_schedule_irqoff() in IRQ context.

Use __napi_schedule() which safe to use from IRQ and softirq context.

Fixes: 85b85c8534 ("amd-xgbe: Re-issue interrupt if interrupt status not cleared")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Acked-by: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-21 09:03:03 +02:00
..
xgbe amd-xgbe: Use __napi_schedule() in BH context 2020-04-21 09:03:03 +02:00
7990.c
7990.h
a2065.c
a2065.h
am79c961a.c
am79c961a.h
amd8111e.c
amd8111e.h
ariadne.c
ariadne.h
atarilance.c
au1000_eth.c
au1000_eth.h
declance.c
hplance.c
hplance.h
Kconfig
lance.c
Makefile
mvme147.c
ni65.c
ni65.h
nmclan_cs.c
pcnet32.c
sun3lance.c
sunlance.c