patch-2.1.37 linux/drivers/net/a2065.c

Next file: linux/drivers/net/apricot.c
Previous file: linux/drivers/net/3c59x.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/net/a2065.c linux/drivers/net/a2065.c
@@ -599,7 +599,7 @@
 #ifdef OLD_METHOD
 	dev->tbusy = 1;
 #else
-	if (set_bit (0, (void *) &dev->tbusy) != 0) {
+	if (test_and_set_bit (0, (void *) &dev->tbusy) != 0) {
 		printk ("Transmitter access conflict.\n");
 		return -1;
 	}

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov