mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 05:05:12 +02:00
ipset: replace RW_LOCK_UNLOCKED
ipset uses RW_LOCK_UNLOCKED directly, but this is not quite right, and causes compilation errors with 2.6.29-rt.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user