mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
net: ena: add missing return when ena_com_get_io_handlers() fails
[ Upstream commit2d2c600a91] Fixes:1738cd3ed3("Add a driver for Amazon Elastic Network Adapters (ENA)") Signed-off-by: Netanel Belgazal <netanel@amazon.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0dc5e02cf0
commit
d06b43ba67
@@ -1542,6 +1542,7 @@ static int ena_create_io_tx_queue(struct ena_adapter *adapter, int qid)
|
||||
"Failed to get TX queue handlers. TX queue num %d rc: %d\n",
|
||||
qid, rc);
|
||||
ena_com_destroy_io_queue(ena_dev, ena_qid);
|
||||
return rc;
|
||||
}
|
||||
|
||||
ena_com_update_numa_node(tx_ring->ena_com_io_cq, ctx.numa_node);
|
||||
@@ -1606,6 +1607,7 @@ static int ena_create_io_rx_queue(struct ena_adapter *adapter, int qid)
|
||||
"Failed to get RX queue handlers. RX queue num %d rc: %d\n",
|
||||
qid, rc);
|
||||
ena_com_destroy_io_queue(ena_dev, ena_qid);
|
||||
return rc;
|
||||
}
|
||||
|
||||
ena_com_update_numa_node(rx_ring->ena_com_io_cq, ctx.numa_node);
|
||||
|
||||
Reference in New Issue
Block a user