commit | e773aaff8295e7f3428d9cf6f8a476a33de00716 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jpirko@redhat.com> | Fri Apr 23 00:53:39 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Apr 23 16:37:32 2010 -0700 |
tree | cdfe16f60d218a7e0ffb4dddd3ff1428703e4190 | |
parent | 3b51cc996e81d8a113416d8094fa4a88f8360a51 [diff] |
l2tp: fix memory allocation Since .size is set properly in "struct pernet_operations l2tp_net_ops", allocating space for "struct l2tp_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>