patch-2.1.34 linux/net/x25/x25_timer.c
Next file: linux/scripts/Configure
Previous file: linux/net/x25/af_x25.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Mon Apr 14 09:31:10 1997
- Orig file:
v2.1.33/linux/net/x25/x25_timer.c
- Orig date:
Thu Mar 27 14:40:18 1997
diff -u --recursive --new-file v2.1.33/linux/net/x25/x25_timer.c linux/net/x25/x25_timer.c
@@ -84,7 +84,8 @@
/*
* Check for the state of the receive buffer.
*/
- if (sk->rmem_alloc < (sk->rcvbuf / 2) && (sk->protinfo.x25->condition & X25_COND_OWN_RX_BUSY)) {
+ if (atomic_read(&sk->rmem_alloc) < (sk->rcvbuf / 2) &&
+ (sk->protinfo.x25->condition & X25_COND_OWN_RX_BUSY)) {
sk->protinfo.x25->condition &= ~X25_COND_OWN_RX_BUSY;
sk->protinfo.x25->condition &= ~X25_COND_ACK_PENDING;
sk->protinfo.x25->vl = sk->protinfo.x25->vr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov