ACCOUNT: fix compile error on realtime kernels

xt_ACCOUNT.c:1040: error: implicit declaration of function 'init_MUTEX'
This commit is contained in:
Jan Engelhardt
2009-09-11 21:46:12 +02:00
parent bd4be0d991
commit 9d1afc4268

View File

@@ -30,6 +30,7 @@
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/semaphore.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <asm/uaccess.h>
@@ -1037,7 +1038,7 @@ static struct nf_sockopt_ops ipt_acc_sockopts = {
static int __init account_tg_init(void)
{
init_MUTEX(&ipt_acc_userspace_mutex);
sema_init(&ipt_acc_userspace_mutex, 1);
if ((ipt_acc_tables =
kmalloc(ACCOUNT_MAX_TABLES *