]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
amd-xgbe: Enable IRQs only if napi_complete_done() is true
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Thu, 9 Mar 2017 23:48:23 +0000 (17:48 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2017 11:57:00 +0000 (12:57 +0100)
commitcdb9caeb71775f550acb44ec7f4a6148631c7b05
treeab575a2555f87095726a39af14eec7c3c4aa4ff7
parent110e7778ea326193890c102ebd8e3d93e8aeff53
amd-xgbe: Enable IRQs only if napi_complete_done() is true

[ Upstream commit d7aba644ffdebf756e51e26a2229055211838e89 ]

Depending on the hardware, the amd-xgbe driver may use disable_irq_nosync()
and enable_irq() when an interrupt is received to process Rx packets. If
the napi_complete_done() return value isn't checked an unbalanced enable
for the IRQ could result, generating a warning stack trace.

Update the driver to only enable interrupts if napi_complete_done() returns
true.

Reported-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c