diff options
author | Yuan Can <yuancan@huawei.com> | 2022-12-07 08:54:10 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-09 10:52:43 +0000 |
commit | 01de1123322e4fe1bbd0fcdf0982511b55519c03 (patch) | |
tree | 07c054c18e78cacbddd76d0f12b95f5de7081961 /lib/bootconfig.c | |
parent | a137f3f27f9290933fe7e40e6dc8a445781c31a2 (diff) |
drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
If vp alloc failed in qlcnic_sriov_init(), all previously allocated vp
needs to be freed.
Fixes: f197a7aa6288 ("qlcnic: VF-PF communication channel implementation")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/bootconfig.c')
0 files changed, 0 insertions, 0 deletions