]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFRM] xfrm_user: Fix unaligned accesses.
authorDavid S. Miller <davem@sunset.davemloft.net>
Fri, 27 Oct 2006 22:29:47 +0000 (15:29 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 30 Oct 2006 23:24:35 +0000 (15:24 -0800)
commit54489c14c058822f7019648b3718bd3820dee802
treef51a5ff43b3f39b9bba582000f5752887f9c9df6
parent201a95afaa324b23188eeec268f6bb0b4b70b710
[XFRM] xfrm_user: Fix unaligned accesses.

Use memcpy() to move xfrm_address_t objects in and out
of netlink messages.  The vast majority of xfrm_user was
doing this properly, except for copy_from_user_state()
and copy_to_user_state().

Signed-off-by: David S. Miller <davem@davemloft.net>
net/xfrm/xfrm_user.c