]> git.baikalelectronics.ru Git - kernel.git/commit
l2tp_eth: fix memory allocation
authorJiri Pirko <jpirko@redhat.com>
Fri, 23 Apr 2010 01:01:52 +0000 (01:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2010 23:37:33 +0000 (16:37 -0700)
commitd260845a1132215f4272ca9c2a95ee52911fba26
treed1d1a4fbaa71f966f4f9b793a792211d59fda834
parent4a4cc955bd6837a4b7729d80c138784b97a72a8d
l2tp_eth: fix memory allocation

Since .size is set properly in "struct pernet_operations l2tp_eth_net_ops",
allocating space for "struct l2tp_eth_net" by hand is not correct, even causes
memory leakage.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_eth.c