aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink')
-rw-r--r--net/netlink/af_netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 9e0628cfdf67..a491c1a4861f 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -1092,7 +1092,7 @@ static int netlink_insert(struct sock *sk, struct net *net, u32 portid)
1092 1092
1093 nlk_sk(sk)->portid = portid; 1093 nlk_sk(sk)->portid = portid;
1094 sock_hold(sk); 1094 sock_hold(sk);
1095 rhashtable_insert(&table->hash, &nlk_sk(sk)->node, GFP_KERNEL); 1095 rhashtable_insert(&table->hash, &nlk_sk(sk)->node);
1096 err = 0; 1096 err = 0;
1097err: 1097err:
1098 mutex_unlock(&nl_sk_hash_lock); 1098 mutex_unlock(&nl_sk_hash_lock);
@@ -1105,7 +1105,7 @@ static void netlink_remove(struct sock *sk)
1105 1105
1106 mutex_lock(&nl_sk_hash_lock); 1106 mutex_lock(&nl_sk_hash_lock);
1107 table = &nl_table[sk->sk_protocol]; 1107 table = &nl_table[sk->sk_protocol];
1108 if (rhashtable_remove(&table->hash, &nlk_sk(sk)->node, GFP_KERNEL)) { 1108 if (rhashtable_remove(&table->hash, &nlk_sk(sk)->node)) {
1109 WARN_ON(atomic_read(&sk->sk_refcnt) == 1); 1109 WARN_ON(atomic_read(&sk->sk_refcnt) == 1);
1110 __sock_put(sk); 1110 __sock_put(sk);
1111 } 1111 }