Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180389
b: refs/heads/master
c: 974c37e
h: refs/heads/master
i:
  180387: 5ea3b78
v: v3
  • Loading branch information
Alexey Dobriyan authored and David S. Miller committed Feb 4, 2010
1 parent 02cf6d6 commit 04916c6
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 180211b841b5bf13ab10d19202adab3eb7749f6c
refs/heads/master: 974c37e9d88c3e5a3e56eb98cb9c84232eb2bdcb
5 changes: 5 additions & 0 deletions trunk/net/netlink/af_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,14 @@ static int netlink_create(struct net *net, struct socket *sock, int protocol,
if (nl_table[protocol].registered &&
try_module_get(nl_table[protocol].module))
module = nl_table[protocol].module;
else
err = -EPROTONOSUPPORT;
cb_mutex = nl_table[protocol].cb_mutex;
netlink_unlock_table();

if (err < 0)
goto out;

err = __netlink_create(net, sock, cb_mutex, protocol);
if (err < 0)
goto out_module;
Expand Down

0 comments on commit 04916c6

Please sign in to comment.