[dpdk-dev] [PATCH] mbuf:using sanity checks do not panic on null mbuf

Stephen Hemminger stephen at networkplumber.org
Mon Jan 8 16:39:41 CET 2018


On Mon,  8 Jan 2018 09:34:23 -0600
Keith Wiles <keith.wiles at intel.com> wrote:

> +	if (!m || !f) {
> +		fprintf(stderr, "MBUF and/or FILE pointer is NULL\n");
> +		return;
> +	}

Calling with f of NULL is user error, let it still die in fprintf.


More information about the dev mailing list