commit | 3a737028630bb3c2b9efc38b9ddef2e09b06b808 | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jpirko@redhat.com> | Fri Apr 23 01:01:52 2010 +0000 |
committer | David S. Miller <davem@davemloft.net> | Fri Apr 23 16:37:33 2010 -0700 |
tree | d1d1a4fbaa71f966f4f9b793a792211d59fda834 | |
parent | e773aaff8295e7f3428d9cf6f8a476a33de00716 [diff] |
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>