Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 20255
b: refs/heads/master
c: e200bd8
h: refs/heads/master
i:
  20253: 5e15687
  20251: b86e601
  20247: 0321539
  20239: 9bc026f
  20223: 69c3042
v: v3
  • Loading branch information
Jamal Hadi Salim authored and David S. Miller committed Feb 13, 2006
1 parent 177c19f commit 7a7eda3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: 178a3259f2508e786fb1bd6538365a167cee35c1
refs/heads/master: e200bd8065e4db6297cd8db071a9188cf9aa6b56
11 changes: 4 additions & 7 deletions trunk/net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ int genl_register_family(struct genl_family *family)
sizeof(struct nlattr *), GFP_KERNEL);
if (family->attrbuf == NULL) {
err = -ENOMEM;
goto errout;
goto errout_locked;
}
} else
family->attrbuf = NULL;
Expand Down Expand Up @@ -288,7 +288,7 @@ int genl_unregister_family(struct genl_family *family)
return -ENOENT;
}

static inline int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
static int genl_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh,
int *errp)
{
struct genl_ops *ops;
Expand Down Expand Up @@ -375,7 +375,7 @@ static void genl_rcv(struct sock *sk, int len)
do {
if (genl_trylock())
return;
netlink_run_queue(sk, &qlen, &genl_rcv_msg);
netlink_run_queue(sk, &qlen, genl_rcv_msg);
genl_unlock();
} while (qlen && genl_sock && genl_sock->sk_receive_queue.qlen);
}
Expand Down Expand Up @@ -549,18 +549,15 @@ static int __init genl_init(void)
netlink_set_nonroot(NETLINK_GENERIC, NL_NONROOT_RECV);
genl_sock = netlink_kernel_create(NETLINK_GENERIC, GENL_MAX_ID,
genl_rcv, THIS_MODULE);
if (genl_sock == NULL) {
if (genl_sock == NULL)
panic("GENL: Cannot initialize generic netlink\n");
return -ENOMEM;
}

return 0;

errout_register:
genl_unregister_family(&genl_ctrl);
errout:
panic("GENL: Cannot register controller: %d\n", err);
return err;
}

subsys_initcall(genl_init);
Expand Down

0 comments on commit 7a7eda3

Please sign in to comment.