diff options
author | Haoxiang Li <haoxiang_li2024@163.com> | 2025-03-07 17:49:52 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-03-11 15:23:28 +0100 |
commit | d2b9d97e89c79c95f8b517e4fa43fd100f936acc (patch) | |
tree | e83a9a9a5bd55b483f117c6a162f80aabf8f92f2 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 415f135ace7fd824cde083184a922e39156055b5 (diff) |
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: 91b7282b613d ("qlcnic: Support VLAN id config.")
Cc: stable@vger.kernel.org
Signed-off-by: Haoxiang Li <haoxiang_li2024@163.com>
Link: https://patch.msgid.link/20250307094952.14874-1-haoxiang_li2024@163.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions