Re: [dpdk-dev] [PATCH] ethdev: fix wrong sizeof argument in malloc function

2017-05-10 Thread Thomas Monjalon
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 > > >

Re: [dpdk-dev] [PATCH] ethdev: fix wrong sizeof argument in malloc function

2017-05-09 Thread 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 a

[dpdk-dev] [PATCH] ethdev: fix wrong sizeof argument in malloc function

2017-05-08 Thread Kuba Kozak
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 Jastr