patch-2.1.34 linux/include/linux/skbuff.h

Next file: linux/include/linux/sunrpc/clnt.h
Previous file: linux/include/linux/nfs_fs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.33/linux/include/linux/skbuff.h linux/include/linux/skbuff.h
@@ -196,12 +196,12 @@
 
 extern __inline__ int skb_cloned(struct sk_buff *skb)
 {
-	return (skb->data_skb->count != 1);
+	return (atomic_read(&skb->data_skb->count) != 1);
 }
 
 extern __inline__ int skb_shared(struct sk_buff *skb)
 {
-	return (skb->users != 1);
+	return (atomic_read(&skb->users) != 1);
 }
 
 /*

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