patch-2.3.49 linux/net/ipv4/icmp.c
Next file: linux/net/ipv4/ip_input.c
Previous file: linux/net/decnet/dn_route.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
Sat Feb 26 22:34:27 2000
- Orig file:
v2.3.48/linux/net/ipv4/icmp.c
- Orig date:
Thu Feb 10 17:11:24 2000
diff -u --recursive --new-file v2.3.48/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -3,7 +3,7 @@
*
* Alan Cox, <alan@redhat.com>
*
- * Version: $Id: icmp.c,v 1.64 2000/02/09 11:16:40 davem Exp $
+ * Version: $Id: icmp.c,v 1.65 2000/02/22 23:54:25 davem Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -801,9 +801,10 @@
/*
* This can't change while we are doing it.
+ * Callers have obtained BR_NETPROTO_LOCK so
+ * we are OK.
*/
- read_lock(&inet_protocol_lock);
ipprot = (struct inet_protocol *) inet_protos[hash];
while(ipprot != NULL) {
struct inet_protocol *nextip;
@@ -822,7 +823,6 @@
ipprot = nextip;
}
- read_unlock(&inet_protocol_lock);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)