Skip to content
Snippets Groups Projects
Commit 94dec6a2 authored by Ben Hutchings's avatar Ben Hutchings
Browse files

sfc: Fix crash in legacy onterrupt handler during ring reallocation


If we are using a legacy interrupt, our IRQ may be shared and our
interrupt handler may be called even though interrupts are disabled on
the NIC. When we change ring sizes, we reallocate the event queue and
the interrupt handler may use an invalid pointer when called for
another device's interrupt.

Maintain a legacy_irq_enabled flag and test that at the top of the
interrupt handler.  Note that this problem results from the need to
work around broken INT_ISR0 reads, and does not affect the legacy
interrupt handler for Falcon A1.

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
parent 46bcf14f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment