diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2007-04-21 07:12:43 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:29:35 -0400 |
commit | 2334e973559e119fa4161047035f03ad97a8676a (patch) | |
tree | 0c01f78dac17f031ed39e262eea042c4381f9dd7 /include/net/ipv6.h | |
parent | 9e412ba7632f71259a53085665d4983b78257b7c (diff) |
[IPV6] SNMP: Avoid unaligned accesses.
Because stats pointer may not be aligned for u64, use memcpy
to fill u64 values.
Issue reported by David Miller <davem@davemloft.net>.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'include/net/ipv6.h')
-rw-r--r-- | include/net/ipv6.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/ipv6.h b/include/net/ipv6.h index 4408def379bf..1df360eb0791 100644 --- a/include/net/ipv6.h +++ b/include/net/ipv6.h | |||
@@ -172,7 +172,7 @@ int snmp6_alloc_dev(struct inet6_dev *idev); | |||
172 | int snmp6_free_dev(struct inet6_dev *idev); | 172 | int snmp6_free_dev(struct inet6_dev *idev); |
173 | int snmp6_mib_init(void *ptr[2], size_t mibsize, size_t mibalign); | 173 | int snmp6_mib_init(void *ptr[2], size_t mibsize, size_t mibalign); |
174 | void snmp6_mib_free(void *ptr[2]); | 174 | void snmp6_mib_free(void *ptr[2]); |
175 | void snmp6_fill_stats(u64 *stats, struct inet6_dev *idev, int attrtype, int bytes); | 175 | void snmp6_fill_stats(void *stats, struct inet6_dev *idev, int attrtype, int bytes); |
176 | 176 | ||
177 | struct ip6_ra_chain | 177 | struct ip6_ra_chain |
178 | { | 178 | { |