mempool: check for zero size creation
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Thu, 2 Aug 2018 00:35:04 +0000 (01:35 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 5 Aug 2018 13:35:02 +0000 (15:35 +0200)
commitb2a4654f082b094441125c2dd55c8b80e2aa2c0a
tree22ad4498c1ee740d366efdd27e9785901c2f41ec
parentd78c9816e77f2be376329929be471161512dc155
mempool: check for zero size creation

Currently, a mempool can be created if the number of
objects is zero. However, in this scenario,
rte_mempool_create should return NULL,
as the mempool created is useless otherwise.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Andrew Rybchenko <arybchenko@solarflare.com>
lib/librte_mempool/rte_mempool.c