mempool: avoid dump crash with null pointer
authorKeith Wiles <keith.wiles@windriver.com>
Sun, 28 Sep 2014 05:28:44 +0000 (05:28 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 27 Nov 2014 16:30:20 +0000 (17:30 +0100)
commit1665d6310dbe461c8f886713dee76f769670f9e4
tree68ec55601495c7a67d6f71e98df9feee3f0173ed
parentfdf20fa7bee9df9037116318a87080e1eb7e757e
mempool: avoid dump crash with null pointer

Check the FILE *f and rte_mempool *mp pointers for NULL.

Signed-off-by: Keith Wiles <keith.wiles@windriver.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
lib/librte_mempool/rte_mempool.c