aboutsummaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-05 08:59:37 -0400
committerDavid Woodhouse <dwmw2@shinybook.infradead.org>2005-05-05 08:59:37 -0400
commitbfd4bda097f8758d28e632ff2035e25577f6b060 (patch)
tree022276b3625a432c7132e39776e7e448445087ac /net/netlink
parent488f2eaca1b0831a5a5e6a66e33bad2cdeff7238 (diff)
parentb2d84f078a8be40f5ae3b4d2ac001e2a7f45fe4f (diff)
Merge with master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'net/netlink')
-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);