From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerin Jacob Subject: Re: [PATCH] mbuf:using sanity checks do not panic on null mbuf Date: Tue, 9 Jan 2018 10:09:50 +0530 Message-ID: <20180109043949.GA24301@jerin> References: <20180108153423.57648-1-keith.wiles@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org To: Keith Wiles Return-path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0049.outbound.protection.outlook.com [104.47.38.49]) by dpdk.org (Postfix) with ESMTP id E503F1B16A for ; Tue, 9 Jan 2018 05:40:13 +0100 (CET) Content-Disposition: inline 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" -----Original Message----- > Date: Mon, 8 Jan 2018 09:34:23 -0600 > From: Keith Wiles > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH] mbuf:using sanity checks do not panic on null > mbuf > X-Mailer: git-send-email 2.10.1 > > The rte_pktmbuf_free() allows for NULL mbuf pointer, but > when sanity check is enabled it will panic with null pointer. > > Signed-off-by: Keith Wiles mbuf autotest is failing with this change. # echo "mbuf_autotest" | sudo ./build/app/test Checking rte_mbuf_sanity_check for failure conditions Checking good mbuf initially Now checking for error conditions Error with NULL mbuf test test_failing_mbuf_sanity_check() failed Test Failed