diff options
author | Nathan Fontenot <nfont@linux.vnet.ibm.com> | 2018-02-20 18:04:18 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-21 21:35:18 +0100 |
commit | af9090c2375e6a4a7b3059c9a3d36cb363c35d42 (patch) | |
tree | 43f52a8e04c904936f2f71e68df0e3654ea6a5be /drivers | |
parent | tcp: remove the hardcode in the definition of TCPF Macro (diff) | |
download | linux-af9090c2375e6a4a7b3059c9a3d36cb363c35d42.tar.xz linux-af9090c2375e6a4a7b3059c9a3d36cb363c35d42.zip |
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 <nfont@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/ibm/ibmvnic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ibm/ibmvnic.c b/drivers/net/ethernet/ibm/ibmvnic.c index ad0f9cc1be04..1703b881252f 100644 --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -2620,7 +2620,7 @@ static int init_sub_crq_irqs(struct ibmvnic_adapter *adapter) dev_err(dev, "Couldn't register tx irq 0x%x. rc=%d\n", scrq->irq, rc); irq_dispose_mapping(scrq->irq); - goto req_rx_irq_failed; + goto req_tx_irq_failed; } } |