]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Don't double-free IRQs when falling back from MSI-X to INTx
authorRoland Dreier <rolandd@cisco.com>
Sat, 13 Jun 2009 22:14:09 +0000 (15:14 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sat, 13 Jun 2009 22:14:09 +0000 (15:14 -0700)
commit11205115484ca3ffe67dc4f18c70aacf8cb24fb5
treee973b5748c54060325ba1dd90ab0ce8ccdc66195
parent30429ee2f62203c9a4d21d13a5775af3fdd83199
IB/mthca: 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.

Reported-by: Yinghai Lu <yhlu.kernel@gmail.com>
Tested-by: Yinghai Lu <yhlu.kernel@gmail.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_eq.c