]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit3500cd73dff48f28f4ba80c171c4c80034d40f76
tree254210ca403483ba2c2654c535ead8003c20358b
parent4b1f0d33db7d5bf92b5623e3ea2066e2de3999e3
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: 4a4857b1c81e ("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