mbuf: fix error handling on pool creation
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 19 Sep 2016 12:34:41 +0000 (14:34 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 5 Oct 2016 12:21:05 +0000 (14:21 +0200)
commit4e8739e9bb5aa125dbc964ad49caaf876d616b41
treedba8c5454b9506feacf0afdfe1539862a2327007
parentff15d9c0babd21103cdad9ae3b6ee54bd719cf8d
mbuf: fix error handling on pool creation

On error, the mempool object has to be freed, and rte_errno should be a
positive value.

Fixes: 152ca517900b ("mbuf: use default mempool handler from config")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf.c