patch-2.1.37 linux/drivers/net/3c523.c
Next file: linux/drivers/net/3c59x.c
Previous file: linux/drivers/net/3c509.c
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon May 12 10:35:40 1997
-  Orig file: 
v2.1.36/linux/drivers/net/3c523.c
-  Orig date: 
Wed Apr 23 19:01:18 1997
diff -u --recursive --new-file v2.1.36/linux/drivers/net/3c523.c linux/drivers/net/3c523.c
@@ -1137,7 +1137,7 @@
     return 0;
   }
 
-  if (set_bit(0, (void*)&dev->tbusy) != 0) {
+  if (test_and_set_bit(0, (void*)&dev->tbusy) != 0) {
      printk("%s: Transmitter access conflict.\n", dev->name);
   } else {
     memcpy((char *)p->xmit_cbuffs[p->xmit_count],(char *)(skb->data),skb->len);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov