mbuf: set errno on pool creation error
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 11 Jul 2016 10:20:26 +0000 (12:20 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 11 Jul 2016 17:10:09 +0000 (19:10 +0200)
commit996e86bf2a74b671225d7a59c0d1eddbec881401
treeb0a672a974c61a1ef512fe222a02e9809dd55556
parente33c4d97913e06b46573a9a43beaf979f8444790
mbuf: set errno on pool creation error

In rte_pktmbuf_pool_create(), the rte_errno variable was not always
set on failure.

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

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