diff options
author | Manish Chopra <manish.chopra@qlogic.com> | 2014-09-22 11:51:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-26 21:11:31 +0200 |
commit | c023030198b2b0fb87f5d9bcb388c41bfaf3c3c0 (patch) | |
tree | f5c7c78025b56bbb86eec486507c18746e8b1389 /mm/kmemleak.c | |
parent | qlcnic: Use qlcnic_83xx_flash_read32() API instead of lockless version of the... (diff) | |
download | linux-c023030198b2b0fb87f5d9bcb388c41bfaf3c3c0.tar.xz linux-c023030198b2b0fb87f5d9bcb388c41bfaf3c3c0.zip |
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>
Diffstat (limited to 'mm/kmemleak.c')
0 files changed, 0 insertions, 0 deletions