From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2] lib/bitratestats: add NULL sanity checks Date: Thu, 26 Jul 2018 20:07:03 +0200 Message-ID: <4850918.9fX15AOWJ3@xps> References: <20180712104948.3113-1-remy.horton@intel.com> <2d0db3f0-3eeb-99bd-33bb-731965d2228f@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Ferruh Yigit To: Remy Horton Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 03CBB25D9 for ; Thu, 26 Jul 2018 20:07:08 +0200 (CEST) In-Reply-To: <2d0db3f0-3eeb-99bd-33bb-731965d2228f@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" 20/07/2018 17:31, Ferruh Yigit: > On 7/12/2018 11:49 AM, Remy Horton wrote: > > If rte_stats_bitrate_reg() or rte_stats_bitrate_calc() are > > passed NULL as the parameter for the stats structure, the > > result is a crash. Fixed by adding a sanity check that makes > > sure the passed-in pointer is not NULL. > > > > Fixes: 2ad7ba9a6567 ("bitrate: add bitrate statistics library") > > > > Signed-off-by: Remy Horton > > Acked-by: Ferruh Yigit Applied, thanks