diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2017-11-12 20:27:49 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-14 07:45:52 +0100 |
commit | 669f8f1a5c6849d4522de4038c8d1a3e09fcc4ce (patch) | |
tree | 5983a6182f90273019c979105573102ccceab1ad /net/packet | |
parent | geneve: exit_net cleanup check added (diff) | |
download | linux-669f8f1a5c6849d4522de4038c8d1a3e09fcc4ce.tar.xz linux-669f8f1a5c6849d4522de4038c8d1a3e09fcc4ce.zip |
packet: exit_net cleanup check added
Be sure that packet.sklist initialized in net_init hook was return
to initial state.
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/packet')
-rw-r--r-- | net/packet/af_packet.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index 9603f6ff17a4..737092ca9b4e 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -4560,6 +4560,7 @@ static int __net_init packet_net_init(struct net *net) static void __net_exit packet_net_exit(struct net *net) { remove_proc_entry("packet", net->proc_net); + WARN_ON_ONCE(!hlist_empty(&net->packet.sklist)); } static struct pernet_operations packet_net_ops = { |