af_iucv: handle non-accepted sockets after resuming from suspend
After resuming from suspend, all af_iucv sockets are disconnected. Ensure that iucv_accept_dequeue() can handle disconnected sockets which are not yet accepted. Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com> Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
d9973179ae
commit
56a73de388
@ -569,6 +569,7 @@ struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock)
|
||||
|
||||
if (sk->sk_state == IUCV_CONNECTED ||
|
||||
sk->sk_state == IUCV_SEVERED ||
|
||||
sk->sk_state == IUCV_DISCONN || /* due to PM restore */
|
||||
!newsock) {
|
||||
iucv_accept_unlink(sk);
|
||||
if (newsock)
|
||||
|
Loading…
Reference in New Issue
Block a user