patch-2.1.34 linux/drivers/net/loopback.c

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

diff -u --recursive --new-file v2.1.33/linux/drivers/net/loopback.c linux/drivers/net/loopback.c
@@ -74,7 +74,7 @@
 	 *	instead are lobbed from tx queue to rx queue 
 	 */
 
-	if(skb->users != 1)
+	if(atomic_read(&skb->users) != 1)
 	{
 	  	struct sk_buff *skb2=skb;
 	  	skb=skb_clone(skb, GFP_ATOMIC);		/* Clone the buffer */

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