Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309494
b: refs/heads/master
c: e9412c3
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and David S. Miller committed May 30, 2012
1 parent b8aca08 commit 091b8aa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 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: 2033e9bf06f07e049bbc77e9452856df846714cc
refs/heads/master: e9412c37082b5c932e83364aaed0c38c2ce33acb
3 changes: 3 additions & 0 deletions trunk/include/linux/genetlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ extern int lockdep_genl_is_held(void);
#define genl_dereference(p) \
rcu_dereference_protected(p, lockdep_genl_is_held())

#define MODULE_ALIAS_GENL_FAMILY(family)\
MODULE_ALIAS_NET_PF_PROTO_NAME(PF_NETLINK, NETLINK_GENERIC, "-family-" family)

#endif /* __KERNEL__ */

#endif /* __LINUX_GENERIC_NETLINK_H */
3 changes: 1 addition & 2 deletions trunk/net/l2tp/l2tp_netlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,5 +923,4 @@ MODULE_AUTHOR("James Chapman <jchapman@katalix.com>");
MODULE_DESCRIPTION("L2TP netlink");
MODULE_LICENSE("GPL");
MODULE_VERSION("1.0");
MODULE_ALIAS("net-pf-" __stringify(PF_NETLINK) "-proto-" \
__stringify(NETLINK_GENERIC) "-type-" "l2tp");
MODULE_ALIAS_GENL_FAMILY("l2tp");
2 changes: 1 addition & 1 deletion trunk/net/netlink/genetlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ static int ctrl_getfamily(struct sk_buff *skb, struct genl_info *info)
#ifdef CONFIG_MODULES
if (res == NULL) {
genl_unlock();
request_module("net-pf-%d-proto-%d-type-%s",
request_module("net-pf-%d-proto-%d-family-%s",
PF_NETLINK, NETLINK_GENERIC, name);
genl_lock();
res = genl_family_find_byname(name);
Expand Down

0 comments on commit 091b8aa

Please sign in to comment.