ipset: replace RW_LOCK_UNLOCKED

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: xtables-addons-1.10/extensions/ipset/ip_set.c
===================================================================
--- xtables-addons-1.10.orig/extensions/ipset/ip_set.c
+++ xtables-addons-1.10/extensions/ipset/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);

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux