net: sk_wmem_alloc has initial value of one, not zero
[safe/jmp/linux-2.6] / net / rose / rose_in.c
index 4ee0879..7f7fcb4 100644 (file)
@@ -182,7 +182,7 @@ static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int framety
                                break;
                        }
                        if (atomic_read(&sk->sk_rmem_alloc) >
-                           (sk->sk_rcvbuf / 2))
+                           (sk->sk_rcvbuf >> 1))
                                rose->condition |= ROSE_COND_OWN_RX_BUSY;
                }
                /*