Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 122099
b: refs/heads/master
c: c1fd3b9
h: refs/heads/master
i:
  122097: 23c8474
  122095: b8f31df
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 23, 2008
1 parent a9bf2c0 commit 5c5baa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 04f258ce7f085dd69422fa01d41c8f0194a0e270
refs/heads/master: c1fd3b9455a977057f73534324d4e07a3d9fe502
2 changes: 2 additions & 0 deletions trunk/net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ static int netlink_create(struct net *net, struct socket *sock, int protocol)
if (err < 0)
goto out_module;

sock_prot_inuse_add(net, &netlink_proto, 1);
nlk = nlk_sk(sock->sk);
nlk->module = module;
out:
Expand Down Expand Up @@ -511,6 +512,7 @@ static int netlink_release(struct socket *sock)
kfree(nlk->groups);
nlk->groups = NULL;

sock_prot_inuse_add(sock_net(sk), &netlink_proto, -1);
sock_put(sk);
return 0;
}
Expand Down

0 comments on commit 5c5baa7

Please sign in to comment.