diff options
author | Yuan Can | 2022-12-07 08:54:10 +0000 |
---|---|---|
committer | Greg Kroah-Hartman | 2022-12-31 13:32:26 +0100 |
commit | dcae92a249551d1a447804b4be1c9fab0e8c95e8 (patch) | |
tree | 6586b0d1856f6181d11ca623e8a054febc39152f /include/net/tls.h | |
parent | 446757787baf99b7db15cb347783c45a37bfe21f (diff) |
drivers: net: qlcnic: Fix potential memory leak in qlcnic_sriov_init()
[ Upstream commit 01de1123322e4fe1bbd0fcdf0982511b55519c03 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/tls.h')
0 files changed, 0 insertions, 0 deletions