]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Check per channel DMA interrupt use in main ISR
authorLendacky, Thomas <Thomas.Lendacky@amd.com>
Fri, 6 Feb 2015 01:17:14 +0000 (19:17 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 06:44:42 +0000 (22:44 -0800)
commitfd73c9244a882d67907b9462d44104ddf3ef3f04
tree4ae758cee05d2598d0940d11660d2ba1dbc2aeac
parenta9bc3c6ec97c93e81ab77d86dcda5cc2fc53d8e8
amd-xgbe: Check per channel DMA interrupt use in main ISR

When using per channel DMA interrupts the transmit interrupt (TI) and the
receive interrupt (RI) are masked off so as to not generate an interrupt
to the main ISR. However, should another interrupt fire for the DMA channel
that is handled by the main ISR the TI/RI bits can still be set. This
will cause the wrong and uninitialized napi structure to be used causing a
panic. Add a check to be sure per channel DMA interrupts are not enabled
before acting on those bit flags.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-drv.c