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

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