|
@@ -373,7 +373,6 @@ static int netlink_release(struct socket *sock)
|
|
nlk->cb->done(nlk->cb);
|
|
nlk->cb->done(nlk->cb);
|
|
netlink_destroy_callback(nlk->cb);
|
|
netlink_destroy_callback(nlk->cb);
|
|
nlk->cb = NULL;
|
|
nlk->cb = NULL;
|
|
- __sock_put(sk);
|
|
|
|
}
|
|
}
|
|
spin_unlock(&nlk->cb_lock);
|
|
spin_unlock(&nlk->cb_lock);
|
|
|
|
|
|
@@ -1099,7 +1098,6 @@ static int netlink_dump(struct sock *sk)
|
|
spin_unlock(&nlk->cb_lock);
|
|
spin_unlock(&nlk->cb_lock);
|
|
|
|
|
|
netlink_destroy_callback(cb);
|
|
netlink_destroy_callback(cb);
|
|
- __sock_put(sk);
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1138,7 +1136,6 @@ int netlink_dump_start(struct sock *ssk, struct sk_buff *skb,
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
}
|
|
}
|
|
nlk->cb = cb;
|
|
nlk->cb = cb;
|
|
- sock_hold(sk);
|
|
|
|
spin_unlock(&nlk->cb_lock);
|
|
spin_unlock(&nlk->cb_lock);
|
|
|
|
|
|
netlink_dump(sk);
|
|
netlink_dump(sk);
|