net/fm10k: fix memory leak when thresh check fails
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 28 Sep 2020 12:44:42 +0000 (20:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 30 Sep 2020 17:19:11 +0000 (19:19 +0200)
commitc87a6de2a130c436fcf73b27f829c48e8249bcc4
treebfc4af929fe665085dfc351c004850258e11906f
parent7054dfc015b66824552423d2a02e97324923399a
net/fm10k: fix memory leak when thresh check fails

In fm10k_rx_queue_setup(), we allocate memory for the queue
structure but not released when thresh check fails.

Fixes: 6cfe8969c969 ("fm10k: add Rx queue setup/release")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Qi Zhang <qi.z.zhang@intel.com>
drivers/net/fm10k/fm10k_ethdev.c