app/testpmd: fix crash when mempool allocation fails
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 9 Sep 2016 09:42:08 +0000 (11:42 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 23 Sep 2016 18:16:23 +0000 (20:16 +0200)
commit24427bb914a6375f29635897d23a3192d85b2127
tree3b326511272704a71035f115f0cd36cca9fb2269
parentfcbddedc531997b66c78fea478b2b7f56683a0f2
app/testpmd: fix crash when mempool allocation fails

Avoid access to mempool pointer if it is NULL.

Coverity issue: 127553
Fixes: b19a0c75a0d4 ("app/testpmd: remove anonymous mempool code")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
app/test-pmd/testpmd.c