patch-2.2.0-final linux/net/ipv4/ip_masq_mfw.c

Next file: linux/net/ipv4/tcp_input.c
Previous file: linux/net/ipv4/fib_semantics.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre9/linux/net/ipv4/ip_masq_mfw.c linux/net/ipv4/ip_masq_mfw.c
@@ -79,7 +79,7 @@
 };
 
 
-static struct semaphore mfw_sema;
+static struct semaphore mfw_sema = MUTEX;
 #ifdef __SMP__
 static rwlock_t mfw_lock = RW_LOCK_UNLOCKED;
 #endif
@@ -748,7 +748,6 @@
 
 __initfunc(int ip_mfw_init(void))
 {
-	sema_init(&mfw_sema, 1);
 	return register_ip_masq_mod ((mmod_self=&mfw_mod));
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov