diff options
Diffstat (limited to 'net/x25/x25_subr.c')
-rw-r--r-- | net/x25/x25_subr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/x25/x25_subr.c b/net/x25/x25_subr.c index 8d6220aa5d0f..511a5986af3e 100644 --- a/net/x25/x25_subr.c +++ b/net/x25/x25_subr.c | |||
@@ -359,7 +359,7 @@ void x25_check_rbuf(struct sock *sk) | |||
359 | { | 359 | { |
360 | struct x25_sock *x25 = x25_sk(sk); | 360 | struct x25_sock *x25 = x25_sk(sk); |
361 | 361 | ||
362 | if (atomic_read(&sk->sk_rmem_alloc) < (sk->sk_rcvbuf / 2) && | 362 | if (atomic_read(&sk->sk_rmem_alloc) < (sk->sk_rcvbuf >> 1) && |
363 | (x25->condition & X25_COND_OWN_RX_BUSY)) { | 363 | (x25->condition & X25_COND_OWN_RX_BUSY)) { |
364 | x25->condition &= ~X25_COND_OWN_RX_BUSY; | 364 | x25->condition &= ~X25_COND_OWN_RX_BUSY; |
365 | x25->condition &= ~X25_COND_ACK_PENDING; | 365 | x25->condition &= ~X25_COND_ACK_PENDING; |