]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix unaligned access in IFLA_STATS64
authorJan Engelhardt <jengelh@medozas.de>
Sat, 27 Mar 2010 23:35:50 +0000 (16:35 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 27 Mar 2010 23:35:50 +0000 (16:35 -0700)
commit7f054f653f413c27edf07ca89918acd6969aae24
tree68ee8aa13ab92d07434edbed09c64f4ecf2e7df6
parentf12ba77a27a344752d8c6ffb0a3adbae26b62718
net: fix unaligned access in IFLA_STATS64

Tony Luck observes that the original IFLA_STATS64 submission causes
unaligned accesses. This is because nla_data() returns a pointer to a
memory region that is only aligned to 32 bits. Do some memcpying to
workaround this.

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c