]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
ipset: replace RW_LOCK_UNLOCKED
authorJan Engelhardt <jengelh@medozas.de>
Mon, 2 Mar 2009 20:25:32 +0000 (21:25 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 5 Mar 2009 00:25:17 +0000 (01:25 +0100)
ipset uses RW_LOCK_UNLOCKED directly, but this is not quite right,
and causes compilation errors with 2.6.29-rt.

extensions/ipset/ip_set.c

index 12cbe2006f3b1dab070d174ad0e91f9bf7c18e8c..0928e8c3d4f45965daece27a9c4ddc560ebb5de6 100644 (file)
@@ -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);