Skip to content
Snippets Groups Projects
Commit d2b9d97e authored by Haoxiang Li's avatar Haoxiang Li Committed by Paolo Abeni
Browse files

qlcnic: fix memory leak issues in qlcnic_sriov_common.c


Add qlcnic_sriov_free_vlans() in qlcnic_sriov_alloc_vlans() if
any sriov_vlans fails to be allocated.
Add qlcnic_sriov_free_vlans() to free the memory allocated by
qlcnic_sriov_alloc_vlans() if "sriov->allowed_vlans" fails to
be allocated.

Fixes: 91b7282b ("qlcnic: Support VLAN id config.")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarHaoxiang Li <haoxiang_li2024@163.com>
Link: https://patch.msgid.link/20250307094952.14874-1-haoxiang_li2024@163.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 415f135a
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment