From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id CC87410A3 for ; Wed, 15 Aug 2018 10:56:46 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Aug 2018 01:56:45 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,242,1531810800"; d="scan'208";a="254250459" Received: from aburakov-mobl1.ger.corp.intel.com (HELO [10.237.220.148]) ([10.237.220.148]) by fmsmga005.fm.intel.com with ESMTP; 15 Aug 2018 01:56:37 -0700 To: Tiwei Bie , dev@dpdk.org References: <20180815072015.57281-1-tiwei.bie@intel.com> From: "Burakov, Anatoly" Message-ID: <125bd864-3d08-0665-f67b-e3004131a2ce@intel.com> Date: Wed, 15 Aug 2018 09:56:36 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180815072015.57281-1-tiwei.bie@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH] malloc: fix potential null pointer dereference X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Aug 2018 08:56:47 -0000 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 -- Thanks, Anatoly