Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /net/ax25/ax25_std_timer.c

Filename:/net/ax25/ax25_std_timer.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3  2.6.25-rc2  2.6.25-rc1 
(Following) 2.6.25-rc8  2.6.25-rc9  2.6.25  2.6.26-git7  2.6.26-git8  2.6.26-git9 

Location
[  2.6.25-rc7
  [  net
    [  ax25
       o  ax25_std_timer.c

Patch

diff --git a/net/ax25/ax25_std_timer.c b/net/ax25/ax25_std_timer.c
index f2f6918..96e4b92 100644
--- a/net/ax25/ax25_std_timer.c
+++ b/net/ax25/ax25_std_timer.c
@@ -32,7 +32,7 @@
 
 void ax25_std_heartbeat_expiry(ax25_cb *ax25)
 {
-   struct sock *sk=ax25->sk;
+   struct sock *sk = ax25->sk;
 
    if (sk)
       bh_lock_sock(sk);
@@ -62,7 +62,7 @@ void ax25_std_heartbeat_expiry(ax25_cb *ax25)
        */
       if (sk != NULL) {
          if (atomic_read(&sk->sk_rmem_alloc) <
-             (sk->sk_rcvbuf / 2) &&
+             (sk->sk_rcvbuf >> 1) &&
              (ax25->condition & AX25_COND_OWN_RX_BUSY)) {
             ax25->condition &= ~AX25_COND_OWN_RX_BUSY;
             ax25->condition &= ~AX25_COND_ACK_PENDING;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.