mbuf: fix NULL freeing when debug enabled
authorOlivier Matz <olivier.matz@6wind.com>
Mon, 29 Jan 2018 09:39:23 +0000 (10:39 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Jan 2018 17:32:19 +0000 (18:32 +0100)
commit9f8d9b2ee358c496fe206d1e6f111067afd501b3
treef921b694e4a7bae78e33d14eb421c259f8bfd15a
parent096ffd811fe21d652e51f07a7859967ffaabc72c
mbuf: fix NULL freeing when debug enabled

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

Fixes: af75078fece3 ("first public release")
Cc: stable@dpdk.org
Reported-by: Keith Wiles <keith.wiles@intel.com>
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mbuf/rte_mbuf.h