From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 816CE4A63 for ; Tue, 9 May 2017 10:46:59 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 May 2017 01:46:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.38,313,1491289200"; d="scan'208";a="854624676" Received: from irsmsx106.ger.corp.intel.com ([163.33.3.31]) by FMSMGA003.fm.intel.com with ESMTP; 09 May 2017 01:46:56 -0700 Received: from irsmsx155.ger.corp.intel.com (163.33.192.3) by IRSMSX106.ger.corp.intel.com (163.33.3.31) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 9 May 2017 09:46:55 +0100 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.153]) by irsmsx155.ger.corp.intel.com ([169.254.14.202]) with mapi id 14.03.0319.002; Tue, 9 May 2017 09:46:55 +0100 From: "Van Haaren, Harry" To: "dev@dpdk.org" , Thomas Monjalon CC: "Jain, Deepak K" , "Jastrzebski, MichalX K" , "Kozak, KubaX" Thread-Topic: [PATCH] ethdev: fix wrong sizeof argument in malloc function Thread-Index: AQHSyIRMfYB16xa7vE2d3eCs0SVapqHrsAHg Date: Tue, 9 May 2017 08:46:54 +0000 Message-ID: References: <1494307334-19960-1-git-send-email-kubax.kozak@intel.com> In-Reply-To: <1494307334-19960-1-git-send-email-kubax.kozak@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWI4YzBlNTgtZDk1ZS00MzhkLWEyNzMtNWJmOWFlNzMyYTc2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE1LjkuNi42IiwiVHJ1c3RlZExhYmVsSGFzaCI6IkwxV1QxZXpTRmRJMHZpUEhza0JhcWltZ3owbnB4KzhlMEZtbE5hUVc2U3M9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 10.0.102.7 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] ethdev: fix wrong sizeof argument in malloc function 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: Tue, 09 May 2017 08:47:00 -0000 > 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 >=20 > From: Michal Jastrzebski >=20 > 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. >=20 > Coverity issue: 144522 > Fixes: 79c913a42f0e ("ethdev: retrieve xstats by ID") >=20 > 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