From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH] mbuf:using sanity checks do not panic on null mbuf Date: Mon, 8 Jan 2018 07:39:41 -0800 Message-ID: <20180108073941.791cba4f@xeon-e3> References: <20180108153423.57648-1-keith.wiles@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org To: Keith Wiles Return-path: Received: from mail-pf0-f182.google.com (mail-pf0-f182.google.com [209.85.192.182]) by dpdk.org (Postfix) with ESMTP id 734881B1C8 for ; Mon, 8 Jan 2018 16:39:44 +0100 (CET) Received: by mail-pf0-f182.google.com with SMTP id e11so2470952pff.6 for ; Mon, 08 Jan 2018 07:39:44 -0800 (PST) In-Reply-To: <20180108153423.57648-1-keith.wiles@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Mon, 8 Jan 2018 09:34:23 -0600 Keith Wiles 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.