]> 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)
commitff6037e4a206a1aadd4ae1eeddfb200071a9a9dc
tree254210ca403483ba2c2654c535ead8003c20358b
parent05e8cdac2be1605ce281a316c1ee24ded71d1075
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: 60973a559baf ("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