patch-2.1.34 linux/include/net/dst.h
Next file: linux/include/net/ipv6.h
Previous file: linux/include/net/af_unix.h
Back to the patch index
Back to the overall index
-  Lines: 9
-  Date:
Mon Apr 14 11:45:18 1997
-  Orig file: 
v2.1.33/linux/include/net/dst.h
-  Orig date: 
Thu Mar 27 14:40:11 1997
diff -u --recursive --new-file v2.1.33/linux/include/net/dst.h linux/include/net/dst.h
@@ -116,7 +116,7 @@
 static __inline__
 void dst_free(struct dst_entry * dst)
 {
-	if (!dst->use) {
+	if (!atomic_read(&dst->use)) {
 		dst_destroy(dst);
 		return;
 	}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov