qlcnic: Fix memory corruption while reading stats using ethtool.
authorManish Chopra <manish.chopra@qlogic.com>
Mon, 22 Sep 2014 09:51:51 +0000 (05:51 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Sep 2014 19:11:31 +0000 (15:11 -0400)
o  Driver is doing memset with zero for total number of stats bytes when
   it has already filled some data in the stats buffer, which can overwrite
   memory area beyond the length of stats buffer.

o  Fix this by initializing stats buffer with zero before filling any data in it.

Signed-off-by: Manish Chopra <manish.chopra@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found