mbuf: fix freeing of NULL mbuf when debug enabled
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 26 Jan 2018 08:40:55 +0000 (09:40 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Fri, 26 Jan 2018 10:22:57 +0000 (11:22 +0100)
commitaf50d8b2df4fd62ccf092297ee3134d972df88e1
treecb91c18a9c820ce264526bf22f25b5ba7982b430
parent6399c4bc965c10fe463ec167ea5b6e202ad4274e
mbuf: fix freeing of NULL mbuf when debug enabled

Do not panic when calling rte_pktmbuf_free(NULL) with mbuf debug
enabled, it is a valid operation.

Reported-by: Keith Wiles <keith.wiles@intel.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf.h