Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299517
b: refs/heads/master
c: 0347875
h: refs/heads/master
i:
  299515: c1afe1c
v: v3
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Apr 13, 2012
1 parent e8fb6b8 commit 22c014f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 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: 7d3d43dab4e978d8d9ad1acf8af15c9b1c4b0f0f
refs/heads/master: 03478756b1b9298686ca9c8793e484ae39eb4649
21 changes: 2 additions & 19 deletions trunk/net/phonet/pn_dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,23 +331,6 @@ static int __net_init phonet_init_net(struct net *net)

static void __net_exit phonet_exit_net(struct net *net)
{
struct phonet_net *pnn = phonet_pernet(net);
struct net_device *dev;
unsigned i;

rtnl_lock();
for_each_netdev(net, dev)
phonet_device_destroy(dev);

for (i = 0; i < 64; i++) {
dev = pnn->routes.table[i];
if (dev) {
rtm_phonet_notify(RTM_DELROUTE, dev, i);
dev_put(dev);
}
}
rtnl_unlock();

proc_net_remove(net, "phonet");
}

Expand All @@ -361,7 +344,7 @@ static struct pernet_operations phonet_net_ops = {
/* Initialize Phonet devices list */
int __init phonet_device_init(void)
{
int err = register_pernet_device(&phonet_net_ops);
int err = register_pernet_subsys(&phonet_net_ops);
if (err)
return err;

Expand All @@ -377,7 +360,7 @@ void phonet_device_exit(void)
{
rtnl_unregister_all(PF_PHONET);
unregister_netdevice_notifier(&phonet_device_notifier);
unregister_pernet_device(&phonet_net_ops);
unregister_pernet_subsys(&phonet_net_ops);
proc_net_remove(&init_net, "pnresource");
}

Expand Down

0 comments on commit 22c014f

Please sign in to comment.