[dpdk-dev] [PATCH] ethdev: fix wrong sizeof argument in malloc function
Thomas Monjalon
thomas at monjalon.net
Wed May 10 16:52:38 CEST 2017
09/05/2017 10:46, Van Haaren, Harry:
> > From: Kozak, KubaX
> > Sent: Tuesday, May 9, 2017 6:22 AM
> > To: dev at dpdk.org
> > Cc: Van Haaren, Harry <harry.van.haaren at intel.com>; Jain, Deepak K <deepak.k.jain at intel.com>;
> > Jastrzebski, MichalX K <michalx.k.jastrzebski at intel.com>; Kozak, KubaX <kubax.kozak at intel.com>
> > Subject: [PATCH] ethdev: fix wrong sizeof argument in malloc function
> >
> > From: Michal Jastrzebski <michalx.k.jastrzebski at intel.com>
> >
> > 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 <michalx.k.jastrzebski at intel.com>
>
> Please consider merging these in 17.05, this is an important fix for 32 bit systems.
>
> Acked-by: Harry van Haaren <harry.van.haaren at intel.com>
>
>
> 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
More information about the dev
mailing list