Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 172127
b: refs/heads/master
c: 3a765ed
h: refs/heads/master
i:
  172125: 54b4410
  172123: 2f148e1
  172119: d68e75e
  172111: 9602b4e
  172095: d437cf0
v: v3
  • Loading branch information
Eric W. Biederman authored and David S. Miller committed Dec 3, 2009
1 parent b5bfeac commit 7735e48
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: d79d792ef9f99cca463b6619a93e860d1c833a6e
refs/heads/master: 3a765edadb28cc736d185f67d1ba6bedcc85f4b9
8 changes: 6 additions & 2 deletions trunk/net/core/net_namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,11 @@ static int register_pernet_operations(struct list_head *list,
}
}
error = __register_pernet_operations(list, ops);
if (error && ops->id)
ida_remove(&net_generic_ids, *ops->id);
if (error) {
rcu_barrier();
if (ops->id)
ida_remove(&net_generic_ids, *ops->id);
}

return error;
}
Expand All @@ -423,6 +426,7 @@ static void unregister_pernet_operations(struct pernet_operations *ops)
{

__unregister_pernet_operations(ops);
rcu_barrier();
if (ops->id)
ida_remove(&net_generic_ids, *ops->id);
}
Expand Down

0 comments on commit 7735e48

Please sign in to comment.