mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
[ATM]: track and close listen sockets when sigd exits
Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil>
This commit is contained in:
parent
e2c4b72158
commit
9301e320e9
3 changed files with 7 additions and 6 deletions
|
@ -178,8 +178,6 @@ static void vcc_destroy_socket(struct sock *sk)
|
|||
if (vcc->push)
|
||||
vcc->push(vcc, NULL); /* atmarpd has no push */
|
||||
|
||||
vcc_remove_socket(sk); /* no more receive */
|
||||
|
||||
while ((skb = skb_dequeue(&sk->sk_receive_queue)) != NULL) {
|
||||
atm_return(vcc,skb->truesize);
|
||||
kfree_skb(skb);
|
||||
|
@ -188,6 +186,8 @@ static void vcc_destroy_socket(struct sock *sk)
|
|||
module_put(vcc->dev->ops->owner);
|
||||
atm_dev_put(vcc->dev);
|
||||
}
|
||||
|
||||
vcc_remove_socket(sk);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue