net: net_assign_generic() fix
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 28 Jul 2009 02:36:15 +0000 (02:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Aug 2009 19:20:36 +0000 (12:20 -0700)
commit144586301f6af5ae5943a002f030d8c626fa4fdd
treef3535075b6dc16fed10426c7414dfb928c21791e
parent446e72f30eca76d6f9a1a54adf84d2c6ba2831f8
net: net_assign_generic() fix

memcpy() should take into account size of pointers,
not only number of pointers to copy.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Pavel Emelyanov <xemul@openvz.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net_namespace.c