[dpdk-dev] [PATCH] net/nfp: initialize stats struct

Stephen Hemminger stephen at networkplumber.org
Fri Nov 10 05:05:54 CET 2017


On Thu, 9 Nov 2017 17:10:16 -0800
Ferruh Yigit <ferruh.yigit at intel.com> wrote:

> On 11/8/2017 3:59 AM, Alejandro Lucero wrote:
> > Not all struct fields will be written and random data could
> > confuse readers.
> > 
> > Fixes: 92aa491b881e ("nfp: add statistics")
> > Coverity: 140755  
> 
> Hi Alejandro,
> 
> Thank you for coverity fixes, but they will be considered for next release,
> since trying to limit rc4 only for critical fixes.
> 
> Thanks,
> ferruh
> 
> > 
> > Signed-off-by: Alejandro Lucero <alejandro.lucero at netronome.com>  
> 

This looks like a bug fix. because the stats are on the stack and will
be garbage.


More information about the dev mailing list