Skip to content
Snippets Groups Projects
Commit 3a737028 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

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: default avatarJiri Pirko <jpirko@redhat.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e773aaff
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment