Skip to content

Commit af9090c

Browse files
nfontdavem330
authored andcommitted
ibmvnic: Correct goto target for tx irq initialization failure
When a failure occurs during initialization of the tx sub crq irqs, we should branch to the cleanup of the tx irqs. The current code branches to the rx irq cleanup and attempts to cleanup the rx irqs which have not been initialized. Signed-off-by: Nathan Fontenot <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent a823fed commit af9090c

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
@@ -2620,7 +2620,7 @@ static int init_sub_crq_irqs(struct ibmvnic_adapter *adapter)
26202620
dev_err(dev, "Couldn't register tx irq 0x%x. rc=%d\n",
26212621
scrq->irq, rc);
26222622
irq_dispose_mapping(scrq->irq);
2623-
goto req_rx_irq_failed;
2623+
goto req_tx_irq_failed;
26242624
}
26252625
}
26262626

0 commit comments

Comments
 (0)