From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] ethdev: fix wrong sizeof argument in malloc function Date: Wed, 10 May 2017 16:52:38 +0200 Message-ID: <1951173.zJhoV9t8yi@xps> References: <1494307334-19960-1-git-send-email-kubax.kozak@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, "Van Haaren, Harry" , "Jain, Deepak K" , "Jastrzebski, MichalX K" To: "Kozak, KubaX" Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id 04A8214EC for ; Wed, 10 May 2017 16:52:39 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 09/05/2017 10:46, Van Haaren, Harry: > > From: Kozak, KubaX > > Sent: Tuesday, May 9, 2017 6:22 AM > > To: dev@dpdk.org > > Cc: Van Haaren, Harry ; Jain, Deepak K ; > > Jastrzebski, MichalX K ; Kozak, KubaX > > Subject: [PATCH] ethdev: fix wrong sizeof argument in malloc function > > > > From: Michal Jastrzebski > > > > Coverity reported that an argument for sizeof was used improperly. > > We should allocate memory for value size that pointer points to, > > instead of pointer size itself. > > > > Coverity issue: 144522 > > Fixes: 79c913a42f0e ("ethdev: retrieve xstats by ID") > > > > Signed-off-by: Michal Jastrzebski > > Please consider merging these in 17.05, this is an important fix for 32 bit systems. > > Acked-by: Harry van Haaren > > > This patch fixes a bug of the same as detailed here: > http://dpdk.org/ml/archives/dev/2017-May/065487.html Applied with title: ethdev: fix xstats by ID on 32-bit Thanks