commit | c023030198b2b0fb87f5d9bcb388c41bfaf3c3c0 | [log] [tgz] |
---|---|---|
author | Manish Chopra <manish.chopra@qlogic.com> | Mon Sep 22 05:51:51 2014 -0400 |
committer | David S. Miller <davem@davemloft.net> | Fri Sep 26 15:11:31 2014 -0400 |
tree | f5c7c78025b56bbb86eec486507c18746e8b1389 | |
parent | 4324414f8ccae4997dd1e91646683679a4436959 [diff] |
qlcnic: Fix memory corruption while reading stats using ethtool. 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>