summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/ip_set.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ip_set.c b/kernel/ip_set.c
index f52647f..15e98d0 100644
--- a/kernel/ip_set.c
+++ b/kernel/ip_set.c
@@ -877,7 +877,7 @@ ip_set_create(const char *name,
set = kmalloc(sizeof(struct ip_set), GFP_KERNEL);
if (!set)
return -ENOMEM;
- set->lock = RW_LOCK_UNLOCKED;
+ rwlock_init(&set->lock);
strncpy(set->name, name, IP_SET_MAXNAMELEN);
set->binding = IP_SET_INVALID_ID;
atomic_set(&set->ref, 0);