patch-2.2.5 linux/net/ipv4/ip_sockglue.c
Next file: linux/net/ipv4/ipconfig.c
Previous file: linux/net/ipv4/ip_output.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Thu Mar 25 09:23:34 1999
- Orig file:
v2.2.4/linux/net/ipv4/ip_sockglue.c
- Orig date:
Tue Mar 23 14:35:48 1999
diff -u --recursive --new-file v2.2.4/linux/net/ipv4/ip_sockglue.c linux/net/ipv4/ip_sockglue.c
@@ -5,7 +5,7 @@
*
* The IP to API glue.
*
- * Version: $Id: ip_sockglue.c,v 1.40 1999/03/21 05:22:42 davem Exp $
+ * Version: $Id: ip_sockglue.c,v 1.41 1999/03/25 10:04:29 davem Exp $
*
* Authors: see ip.c
*
@@ -209,9 +209,9 @@
kfree(new_ra);
return -EADDRINUSE;
}
- net_serialize_enter();
*rap = ra->next;
- net_serialize_leave();
+ synchronize_bh();
+
if (ra->destructor)
ra->destructor(sk);
kfree(ra);
@@ -222,10 +222,11 @@
return -ENOBUFS;
new_ra->sk = sk;
new_ra->destructor = destructor;
+
new_ra->next = ra;
- net_serialize_enter();
+ wmb();
*rap = new_ra;
- net_serialize_leave();
+
return 0;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)