mempool/octeontx: fix error handling in initialization
authorKrzysztof Kanas <kkanas@marvell.com>
Thu, 19 Dec 2019 10:44:34 +0000 (11:44 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:26 +0000 (19:46 +0100)
commit4f2c3c7b1da78bbb6270668e7a2b412863439b7f
treed3ec891055ec99ecd4e5e709ba26a0416f5f75ef
parent04952bac8c98e8c30d239d462fc9bf5be265460f
mempool/octeontx: fix error handling in initialization

When octeontx_get_fpavf fails fpa pointer is used to get
pool_stack_base, which is then freed.

Coverity issue: 351263
Fixes: 9bc692f83baa ("mempool/octeontx: add application domain validation")
Cc: stable@dpdk.org
Signed-off-by: Krzysztof Kanas <kkanas@marvell.com>
Acked-by: Jerin Jacob <jerinj@marvell.com>
drivers/mempool/octeontx/octeontx_fpavf.c