From: Hendrik Brueckner Date: Wed, 16 Sep 2009 04:37:26 +0000 (+0000) Subject: af_iucv: handle non-accepted sockets after resuming from suspend X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=56a73de3889383b70ed1fef06aaab0677731b0ea;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Ursula Braun Signed-off-by: David S. Miller --- diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index 21ee68be02ee..a48fd2871532 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c @@ -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)