]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Use __napi_schedule() in BH context
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 16 Apr 2020 15:57:40 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Apr 2020 20:59:53 +0000 (13:59 -0700)
commita9b129251a9f0005960ab85e8e44417a97452715
tree97e88b1b17c159abe09af0c41323ea8c9285332e
parent14d81e5819f975f00ce2422d5f2dcdf6d7db4354
amd-xgbe: Use __napi_schedule() in BH context

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: f43c3d6c34200 ("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>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c