Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 13646
b: refs/heads/master
c: ed77de9
h: refs/heads/master
v: v3
  • Loading branch information
Harald Welte authored and David S. Miller committed Nov 9, 2005
1 parent e2dece3 commit cb11146
Show file tree
Hide file tree
Showing 2 changed files with 11 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: 5978a9b82c55b82a1087bd86e0ae8b00f94d0d0b
refs/heads/master: ed77de9fc69076e6e7c85edf7c1b70650f53121a
17 changes: 10 additions & 7 deletions trunk/net/netfilter/nfnetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -240,15 +240,18 @@ static inline int nfnetlink_rcv_msg(struct sk_buff *skb,
ss = nfnetlink_get_subsys(type);
if (!ss) {
#ifdef CONFIG_KMOD
/* don't call nfnl_shunlock, since it would reenter
* with further packet processing */
up(&nfnl_sem);
request_module("nfnetlink-subsys-%d", NFNL_SUBSYS_ID(type));
nfnl_shlock();
ss = nfnetlink_get_subsys(type);
if (cap_raised(NETLINK_CB(skb).eff_cap, CAP_NET_ADMIN)) {
/* don't call nfnl_shunlock, since it would reenter
* with further packet processing */
up(&nfnl_sem);
request_module("nfnetlink-subsys-%d",
NFNL_SUBSYS_ID(type));
nfnl_shlock();
ss = nfnetlink_get_subsys(type);
}
if (!ss)
#endif
goto err_inval;
goto err_inval;
}

nc = nfnetlink_find_client(type, ss);
Expand Down

0 comments on commit cb11146

Please sign in to comment.