diff options
Diffstat (limited to 'net/iucv/af_iucv.c')
-rw-r--r-- | net/iucv/af_iucv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c index f4ad720ea618..32a5010b2940 100644 --- a/net/iucv/af_iucv.c +++ b/net/iucv/af_iucv.c | |||
@@ -2293,6 +2293,13 @@ static void afiucv_hs_callback_txnotify(struct sk_buff *skb, | |||
2293 | } | 2293 | } |
2294 | spin_unlock_irqrestore(&list->lock, flags); | 2294 | spin_unlock_irqrestore(&list->lock, flags); |
2295 | 2295 | ||
2296 | if (sk->sk_state == IUCV_CLOSING) { | ||
2297 | if (skb_queue_empty(&iucv_sk(sk)->send_skb_q)) { | ||
2298 | sk->sk_state = IUCV_CLOSED; | ||
2299 | sk->sk_state_change(sk); | ||
2300 | } | ||
2301 | } | ||
2302 | |||
2296 | out_unlock: | 2303 | out_unlock: |
2297 | bh_unlock_sock(sk); | 2304 | bh_unlock_sock(sk); |
2298 | } | 2305 | } |