diff options
-rw-r--r-- | net/tipc/socket.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/tipc/socket.c b/net/tipc/socket.c index 59adc76905e0..1a720c86e80a 100644 --- a/net/tipc/socket.c +++ b/net/tipc/socket.c | |||
@@ -1595,10 +1595,11 @@ restart: | |||
1595 | 1595 | ||
1596 | case SS_DISCONNECTING: | 1596 | case SS_DISCONNECTING: |
1597 | 1597 | ||
1598 | /* Discard any unreceived messages; wake up sleeping tasks */ | 1598 | /* Discard any unreceived messages */ |
1599 | discard_rx_queue(sk); | 1599 | discard_rx_queue(sk); |
1600 | if (waitqueue_active(sk_sleep(sk))) | 1600 | |
1601 | wake_up_interruptible(sk_sleep(sk)); | 1601 | /* Wake up anyone sleeping in poll */ |
1602 | sk->sk_state_change(sk); | ||
1602 | res = 0; | 1603 | res = 0; |
1603 | break; | 1604 | break; |
1604 | 1605 | ||