From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] malloc: fix potential null pointer dereference Date: Sun, 16 Sep 2018 11:24:13 +0200 Message-ID: <1605293.DU2SKVn0M9@xps> References: <20180815072015.57281-1-tiwei.bie@intel.com> <125bd864-3d08-0665-f67b-e3004131a2ce@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Burakov, Anatoly" To: Tiwei Bie Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id D197C2B9E for ; Sun, 16 Sep 2018 11:24:15 +0200 (CEST) In-Reply-To: <125bd864-3d08-0665-f67b-e3004131a2ce@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" 15/08/2018 10:56, Burakov, Anatoly: > On 15-Aug-18 8:20 AM, Tiwei Bie wrote: > > We need to do the NULL pointer check first after malloc(). > > > > Fixes: 07dcbfe0101f ("malloc: support multiprocess memory hotplug") > > Cc: stable@dpdk.org > > > > Signed-off-by: Tiwei Bie > > Acked-by: Anatoly Burakov Applied, thanks