net: liquidio: release resources when liquidio driver open failed
authorZhengchao Shao <shaozhengchao@huawei.com>
Thu, 10 Nov 2022 10:30:37 +0000 (18:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2022 10:05:39 +0000 (10:05 +0000)
commit8979f428a4afc215e390006e5ea19fd4e22c7ca9
tree6156aea30b16be08edaf2c41ce195f37fc4dfec3
parent9cbd48d5fa14e4c65f8580de16686077f7cea02b
net: liquidio: release resources when liquidio driver open failed

When liquidio driver open failed, it doesn't release resources. Compile
tested only.

Fixes: 5b07aee11227 ("liquidio: MSIX support for CN23XX")
Fixes: dbc97bfd3918 ("net: liquidio: Add missing null pointer checks")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c