patch-2.1.37 linux/drivers/isdn/isdn_net.c

Next file: linux/drivers/isdn/sc/Makefile
Previous file: linux/drivers/isdn/hisax/isdnl1.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.36/linux/drivers/isdn/isdn_net.c linux/drivers/isdn/isdn_net.c
@@ -934,7 +934,7 @@
 		return 0;
 	}
 	/* Avoid timer-based retransmission conflicts. */
-	if (set_bit(0, (void *) &ndev->tbusy) != 0)
+	if (test_and_set_bit(0, (void *) &ndev->tbusy) != 0)
 		printk(KERN_WARNING
 		       "%s: Transmitter access conflict.\n",
 		       ndev->name);

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