proc: snmp6: Use correct type in memset
authorChristian Perle <christian.perle@secunet.com>
Mon, 12 Jun 2017 08:06:57 +0000 (10:06 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Jul 2017 12:40:15 +0000 (14:40 +0200)
commit059686754c1870f182ce55495b81728763732d48
tree6bf7449623ba69c2bc9844ec070942301c8bffe4
parent78b24ab695abafe4c5754a661a591b841661df8b
proc: snmp6: Use correct type in memset

[ Upstream commit 3500cd73dff48f28f4ba80c171c4c80034d40f76 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/proc.c