]> git.baikalelectronics.ru Git - kernel.git/commit
proc: snmp6: Use correct type in memset
authorChristian Perle <christian.perle@secunet.com>
Mon, 12 Jun 2017 08:06:57 +0000 (10:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jun 2017 13:53:14 +0000 (09:53 -0400)
commita4c5f36b01a251398a12c2a4da318f26ffe954c0
tree254210ca403483ba2c2654c535ead8003c20358b
parentbf7a710c56407ebff31411f3ad0aec075af8d528
proc: snmp6: Use correct type in memset

Reading /proc/net/snmp6 yields bogus values on 32 bit kernels.
Use "u64" instead of "unsigned long" in sizeof().

Fixes: 97ad80b94a7b ("proc: Reduce cache miss in snmp6_seq_show")
Signed-off-by: Christian Perle <christian.perle@secunet.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/proc.c