patch-2.1.37 linux/drivers/net/3c501.c

Next file: linux/drivers/net/3c505.c
Previous file: linux/drivers/isdn/teles/teles.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/net/3c501.c linux/drivers/net/3c501.c
@@ -413,7 +413,7 @@
 	 *	Avoid timer-based retransmission conflicts.
 	 */
 
-	if (set_bit(0, (void*)&dev->tbusy) != 0)
+	if (test_and_set_bit(0, (void*)&dev->tbusy) != 0)
 	{
 		restore_flags(flags);
 		printk("%s: Transmitter access conflict.\n", dev->name);

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