net: net_assign_generic() fix
authorEric Dumazet <eric.dumazet@gmail.com>
Tue, 28 Jul 2009 02:36:15 +0000 (02:36 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 17:37:21 +0000 (10:37 -0700)
commit52238af23c7afb11cad5978f0434036f494f1b00
treeb3257bfe25b8ac10c8b1965785a8ae8ea1b3d445
parent832b524a136e7306f66a632a42dbc86fd41b2f3c
net: net_assign_generic() fix

[ Upstream commit 144586301f6af5ae5943a002f030d8c626fa4fdd ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/core/net_namespace.c