From 8c322a0119fed4e317761336aef96ea3989540a5 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 2 Mar 2009 21:25:32 +0100 Subject: [PATCH] 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. --- extensions/ipset/ip_set.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/ipset/ip_set.c b/extensions/ipset/ip_set.c index 12cbe20..0928e8c 100644 --- a/extensions/ipset/ip_set.c +++ b/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);