mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 00:26:39 +08:00
ax25: Quick fix for making sure unaccepted sockets get destroyed.
Since we reverted 30902dc3cb
("ax25: Fix
std timer socket destroy handling.") we have to put some kind of fix
in to cure the issue whereby unaccepted connections do not get destroyed.
The approach used here is from Tihomir Heidelberg - 9a4gl
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
88a944eef8
commit
33d1d2c52c
@ -317,6 +317,9 @@ void ax25_destroy_socket(ax25_cb *ax25)
|
||||
/* Queue the unaccepted socket for death */
|
||||
sock_orphan(skb->sk);
|
||||
|
||||
/* 9A4GL: hack to release unaccepted sockets */
|
||||
skb->sk->sk_state = TCP_LISTEN;
|
||||
|
||||
ax25_start_heartbeat(sax25);
|
||||
sax25->state = AX25_STATE_0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user