Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279117
b: refs/heads/master
c: fa84309
h: refs/heads/master
i:
  279115: deeb829
v: v3
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Dec 28, 2011
1 parent 903c887 commit 240878a
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 7ffbcecbeed91e5874e9a1cfc4c0cbb07dac3069
refs/heads/master: fa84309533025eb3f03dc1d2d2be1c3ca206882a
9 changes: 9 additions & 0 deletions trunk/net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,15 @@ static int ctrl_getfamily(struct sk_buff *skb, struct genl_info *info)

name = nla_data(info->attrs[CTRL_ATTR_FAMILY_NAME]);
res = genl_family_find_byname(name);
#ifdef CONFIG_MODULES
if (res == NULL) {
genl_unlock();
request_module("net-pf-%d-proto-%d-type-%s",
PF_NETLINK, NETLINK_GENERIC, name);
genl_lock();
res = genl_family_find_byname(name);
}
#endif
err = -ENOENT;
}

Expand Down

0 comments on commit 240878a

Please sign in to comment.