Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172114
b: refs/heads/master
c: 91e2ff3
h: refs/heads/master
v: v3
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Dec 3, 2009
1 parent 9ce46a6 commit 5d62b70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 650de8de16aa7c168c34d1b6a3191e4a5e2648c8
refs/heads/master: 91e2ff3528ac90b9dbcb04b76488e8ad74e3d3d9
8 changes: 3 additions & 5 deletions trunk/net/8021q/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,8 +698,6 @@ static int vlan_init_net(struct net *net)

static void vlan_exit_net(struct net *net)
{
rtnl_kill_links(net, &vlan_link_ops);

vlan_proc_cleanup(net);
}

Expand All @@ -717,7 +715,7 @@ static int __init vlan_proto_init(void)
pr_info("%s v%s %s\n", vlan_fullname, vlan_version, vlan_copyright);
pr_info("All bugs added by %s\n", vlan_buggyright);

err = register_pernet_device(&vlan_net_ops);
err = register_pernet_subsys(&vlan_net_ops);
if (err < 0)
goto err0;

Expand All @@ -742,7 +740,7 @@ static int __init vlan_proto_init(void)
err3:
unregister_netdevice_notifier(&vlan_notifier_block);
err2:
unregister_pernet_device(&vlan_net_ops);
unregister_pernet_subsys(&vlan_net_ops);
err0:
return err;
}
Expand All @@ -762,7 +760,7 @@ static void __exit vlan_cleanup_module(void)
for (i = 0; i < VLAN_GRP_HASH_SIZE; i++)
BUG_ON(!hlist_empty(&vlan_group_hash[i]));

unregister_pernet_device(&vlan_net_ops);
unregister_pernet_subsys(&vlan_net_ops);
rcu_barrier(); /* Wait for completion of call_rcu()'s */

vlan_gvrp_uninit();
Expand Down

0 comments on commit 5d62b70

Please sign in to comment.