patch-2.2.5 linux/net/ipv4/fib_rules.c
Next file: linux/net/ipv4/igmp.c
Previous file: linux/net/ipv4/fib_hash.c
Back to the patch index
Back to the overall index
-  Lines: 22
-  Date:
Thu Mar 25 09:23:34 1999
-  Orig file: 
v2.2.4/linux/net/ipv4/fib_rules.c
-  Orig date: 
Tue Mar 23 14:35:48 1999
diff -u --recursive --new-file v2.2.4/linux/net/ipv4/fib_rules.c linux/net/ipv4/fib_rules.c
@@ -5,7 +5,7 @@
  *
  *		IPv4 Forwarding Information Base: policy rules.
  *
- * Version:	$Id: fib_rules.c,v 1.8 1999/03/21 05:22:33 davem Exp $
+ * Version:	$Id: fib_rules.c,v 1.9 1999/03/25 10:04:23 davem Exp $
  *
  * Authors:	Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>
  *
@@ -101,9 +101,10 @@
 		    (!rtm->rtm_table || (r && rtm->rtm_table == r->r_table))) {
 			if (r == &local_rule)
 				return -EPERM;
-			net_serialize_enter();
+
 			*rp = r->r_next;
-			net_serialize_leave();
+			synchronize_bh();
+
 			if (r != &default_rule && r != &main_rule)
 				kfree(r);
 			return 0;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)