common/iavf: fix ARQ resource leak
authorQiming Chen <chenqiming_huawei@163.com>
Fri, 10 Sep 2021 03:12:49 +0000 (11:12 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Tue, 28 Sep 2021 03:33:44 +0000 (05:33 +0200)
commit395d41fbb1dd2faa21e143865ce12c195ec8194b
tree83e3043ce498b8a93e172373d0600a83b49edc50
parentad5629de9a7ba367886c6619a1eeb56c36fd2748
common/iavf: fix ARQ resource leak

In the iavf_init_arq function, if an exception occurs in the
iavf_config_arq_regs function, and the previously applied ARQ (Admin
Receive Queue) bufs resource is released. This patch maintains the same
modification as the iavf_init_asq function to roll back resources.

Fixes: 87aca6d8d8a4 ("net/iavf/base: fix command buffer memory leak")
Cc: stable@dpdk.org
Signed-off-by: Qiming Chen <chenqiming_huawei@163.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/common/iavf/iavf_adminq.c