Adapt to removal of init_MUTEX. sema_init is already in 2.6.13
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 21 Jan 2011 09:39:10 +0000 (10:39 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Fri, 21 Jan 2011 09:39:10 +0000 (10:39 +0100)
linux-2.6.36/net/ipv4/netfilter/ipt_ACCOUNT.c

index 92f6dac..53ee450 100644 (file)
@@ -1152,7 +1152,7 @@ static struct nf_sockopt_ops ipt_acc_sockopts = {
 
 static int __init init(void)
 {
-    init_MUTEX(&ipt_acc_userspace_mutex);
+    sema_init(&ipt_acc_userspace_mutex, 1);
 
     if ((ipt_acc_tables = 
          kmalloc(ACCOUNT_MAX_TABLES *