aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink/af_netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/netlink/af_netlink.c')
-rw-r--r--net/netlink/af_netlink.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 379ed06e60a3..733bf52cef3e 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -375,7 +375,6 @@ static int netlink_release(struct socket *sock)
375 nlk->cb->done(nlk->cb); 375 nlk->cb->done(nlk->cb);
376 netlink_destroy_callback(nlk->cb); 376 netlink_destroy_callback(nlk->cb);
377 nlk->cb = NULL; 377 nlk->cb = NULL;
378 __sock_put(sk);
379 } 378 }
380 spin_unlock(&nlk->cb_lock); 379 spin_unlock(&nlk->cb_lock);
381 380
@@ -1102,7 +1101,6 @@ static int netlink_dump(struct sock *sk)
1102 spin_unlock(&nlk->cb_lock); 1101 spin_unlock(&nlk->cb_lock);
1103 1102
1104 netlink_destroy_callback(cb); 1103 netlink_destroy_callback(cb);
1105 __sock_put(sk);
1106 return 0; 1104 return 0;
1107} 1105}
1108 1106
@@ -1141,7 +1139,6 @@ int netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
1141 return -EBUSY; 1139 return -EBUSY;
1142 } 1140 }
1143 nlk->cb = cb; 1141 nlk->cb = cb;
1144 sock_hold(sk);
1145 spin_unlock(&nlk->cb_lock); 1142 spin_unlock(&nlk->cb_lock);
1146 1143
1147 netlink_dump(sk); 1144 netlink_dump(sk);