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)
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>

No differences found