diff options
author | Yuan Can | 2022-11-14 02:56:59 +0000 |
---|---|---|
committer | Paolo Abeni | 2022-11-15 12:55:59 +0100 |
commit | d349e9be5a2c2d7588a2c4e4bfa0bb3dc1226769 (patch) | |
tree | 71cf0e7bec078034045d0ad06ea39bf1d861f569 /drivers/net/ethernet/broadcom/bnx2x | |
parent | 5121197ecc5db58c07da95eb1ff82b98b121a221 (diff) |
net: ena: Fix error handling in ena_init()
The ena_init() won't destroy workqueue created by
create_singlethread_workqueue() when pci_register_driver() failed.
Call destroy_workqueue() when pci_register_driver() failed to prevent the
resource leak.
Fixes: 1738cd3ed342 ("net: ena: Add a driver for Amazon Elastic Network Adapters (ENA)")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Acked-by: Shay Agroskin <shayagr@amazon.com>
Link: https://lore.kernel.org/r/20221114025659.124726-1-yuancan@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x')
0 files changed, 0 insertions, 0 deletions