Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7558
b: refs/heads/master
c: 0a3f435
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Sep 7, 2005
1 parent f56556c commit d932d01
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: 48bc41a49c4f3aa760dff84e7f71437f5ed520fe
refs/heads/master: 0a3f4358ac6283fe3a565183eaf9716de28b6fd0
5 changes: 2 additions & 3 deletions trunk/net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,8 @@ EXPORT_SYMBOL(proto_register);
void proto_unregister(struct proto *prot)
{
write_lock(&proto_list_lock);
list_del(&prot->node);
write_unlock(&proto_list_lock);

if (prot->slab != NULL) {
kmem_cache_destroy(prot->slab);
Expand All @@ -1550,9 +1552,6 @@ void proto_unregister(struct proto *prot)
kfree(name);
prot->twsk_slab = NULL;
}

list_del(&prot->node);
write_unlock(&proto_list_lock);
}

EXPORT_SYMBOL(proto_unregister);
Expand Down

0 comments on commit d932d01

Please sign in to comment.