diff options
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 2 | ||||
-rw-r--r-- | net/netlink/genetlink.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 795424396aff..6464a1972a69 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -545,7 +545,7 @@ static int netlink_autobind(struct socket *sock) | |||
545 | struct hlist_head *head; | 545 | struct hlist_head *head; |
546 | struct sock *osk; | 546 | struct sock *osk; |
547 | struct hlist_node *node; | 547 | struct hlist_node *node; |
548 | s32 pid = current->tgid; | 548 | s32 pid = task_tgid_vnr(current); |
549 | int err; | 549 | int err; |
550 | static s32 rover = -4097; | 550 | static s32 rover = -4097; |
551 | 551 | ||
diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c index a4b6e148c5de..a28fda7420d9 100644 --- a/net/netlink/genetlink.c +++ b/net/netlink/genetlink.c | |||
@@ -20,15 +20,17 @@ | |||
20 | 20 | ||
21 | static DEFINE_MUTEX(genl_mutex); /* serialization of message processing */ | 21 | static DEFINE_MUTEX(genl_mutex); /* serialization of message processing */ |
22 | 22 | ||
23 | static inline void genl_lock(void) | 23 | void genl_lock(void) |
24 | { | 24 | { |
25 | mutex_lock(&genl_mutex); | 25 | mutex_lock(&genl_mutex); |
26 | } | 26 | } |
27 | EXPORT_SYMBOL(genl_lock); | ||
27 | 28 | ||
28 | static inline void genl_unlock(void) | 29 | void genl_unlock(void) |
29 | { | 30 | { |
30 | mutex_unlock(&genl_mutex); | 31 | mutex_unlock(&genl_mutex); |
31 | } | 32 | } |
33 | EXPORT_SYMBOL(genl_unlock); | ||
32 | 34 | ||
33 | #define GENL_FAM_TAB_SIZE 16 | 35 | #define GENL_FAM_TAB_SIZE 16 |
34 | #define GENL_FAM_TAB_MASK (GENL_FAM_TAB_SIZE - 1) | 36 | #define GENL_FAM_TAB_MASK (GENL_FAM_TAB_SIZE - 1) |