mlx4_core: Don't double-free IRQs when falling back from MSI-X to INTx
authorRoland Dreier <rolandd@cisco.com>
Sun, 14 Jun 2009 20:30:45 +0000 (13:30 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 14 Jun 2009 20:30:45 +0000 (13:30 -0700)
commitd1fdf24b4074a8d962f9a28519c99dcdd66bdee3
treead9a3b623b5f7a23811f68ae95e100119b037635
parent9aa0a489d909af0cc36c41d3061ef956c7442ce2
mlx4_core: Don't double-free IRQs when falling back from MSI-X to INTx

When both MSI-X and legacy INTx fail to generate an interrupt, the
driver frees the MSI-X interrupts twice.  Fix this by clearing the
have_irq flag for the MSI-X interrupts when they are freed the first
time.  This is the same bug that was reported in ib_mthca by Yinghai
Lu <yhlu.kernel@gmail.com>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/eq.c