patch-2.1.34 linux/net/netrom/nr_timer.c
Next file: linux/net/netsyms.c
Previous file: linux/net/netrom/af_netrom.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/netrom/nr_timer.c
- Orig date:
Thu Mar 27 14:40:17 1997
diff -u --recursive --new-file v2.1.33/linux/net/netrom/nr_timer.c linux/net/netrom/nr_timer.c
@@ -85,7 +85,8 @@
/*
* Check for the state of the receive buffer.
*/
- if (sk->rmem_alloc < (sk->rcvbuf / 2) && (sk->protinfo.nr->condition & NR_COND_OWN_RX_BUSY)) {
+ if (atomic_read(&sk->rmem_alloc) < (sk->rcvbuf / 2) &&
+ (sk->protinfo.nr->condition & NR_COND_OWN_RX_BUSY)) {
sk->protinfo.nr->condition &= ~NR_COND_OWN_RX_BUSY;
sk->protinfo.nr->condition &= ~NR_COND_ACK_PENDING;
sk->protinfo.nr->vl = sk->protinfo.nr->vr;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov