Skip to content

Commit 27a2145

Browse files
tlfalcondavem330
authored andcommitted
ibmvnic: Fix IRQ mapping disposal in error path
RX queue IRQ mappings are disposed in both the TX IRQ and RX IRQ error paths. Fix this and dispose of TX IRQ mappings correctly in case of an error. Fixes: ea22d51 ("ibmvnic: simplify and improve driver probe function") Signed-off-by: Thomas Falcon <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5d104a5 commit 27a2145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ibm/ibmvnic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3206,7 +3206,7 @@ static int init_sub_crq_irqs(struct ibmvnic_adapter *adapter)
32063206
req_tx_irq_failed:
32073207
for (j = 0; j < i; j++) {
32083208
free_irq(adapter->tx_scrq[j]->irq, adapter->tx_scrq[j]);
3209-
irq_dispose_mapping(adapter->rx_scrq[j]->irq);
3209+
irq_dispose_mapping(adapter->tx_scrq[j]->irq);
32103210
}
32113211
release_sub_crqs(adapter, 1);
32123212
return rc;

0 commit comments

Comments
 (0)