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

Next file: linux/drivers/net/sdla_fr.c
Previous file: linux/drivers/net/ppp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/net/sdla.c linux/drivers/net/sdla.c
@@ -657,7 +657,7 @@
 	if (skb == NULL) 
 		return(0);
 
-	if (set_bit(0, (void*)&dev->tbusy) != 0)
+	if (test_and_set_bit(0, (void*)&dev->tbusy) != 0)
 		printk(KERN_WARNING "%s: transmitter access conflict.\n", dev->name);
 	else
 	{

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