net/iavf: fix memory leak in large VF
authorTing Xu <ting.xu@intel.com>
Mon, 14 Dec 2020 06:04:10 +0000 (14:04 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 8 Jan 2021 15:03:05 +0000 (16:03 +0100)
commit20aa3a899ce0203d179cc5ea3bc5688193116a25
tree105498c31f6f02933ac329ae938fa07e8e05090d
parent0a4533facb49b0ca0d7520fee09270a82017e8fe
net/iavf: fix memory leak in large VF

This patch fixed the issue that the memory allocated for structure
virtchnl_del_ena_dis_queues is not released at the end of the functions
iavf_enable_queues_lv, iavf_disable_queues_lv and iavf_switch_queue_lv.

Fixes: 9cf9c02bf6ee ("net/iavf: add enable/disable queues for large VF")
Cc: stable@dpdk.org
Signed-off-by: Ting Xu <ting.xu@intel.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/iavf/iavf_vchnl.c