diff options
Diffstat (limited to 'kernel/ip_set.c')
-rw-r--r-- | kernel/ip_set.c | 2 |
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); |