patch-2.1.34 linux/net/ax25/ax25_ds_timer.c
Next file: linux/net/ax25/ax25_in.c
Previous file: linux/net/ax25/af_ax25.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Mon Apr 14 09:31:10 1997
- Orig file:
v2.1.33/linux/net/ax25/ax25_ds_timer.c
- Orig date:
Thu Mar 27 14:40:13 1997
diff -u --recursive --new-file v2.1.33/linux/net/ax25/ax25_ds_timer.c linux/net/ax25/ax25_ds_timer.c
@@ -146,7 +146,7 @@
* Check the state of the receive buffer.
*/
if (ax25->sk != NULL) {
- if (ax25->sk->rmem_alloc < (ax25->sk->rcvbuf / 2) && (ax25->condition & AX25_COND_OWN_RX_BUSY)) {
+ if (atomic_read(&ax25->sk->rmem_alloc) < (ax25->sk->rcvbuf / 2) && (ax25->condition & AX25_COND_OWN_RX_BUSY)) {
ax25->condition &= ~AX25_COND_OWN_RX_BUSY;
break;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov