]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[IPV6]: Use macro for rwlock_t initialization.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Wed, 4 Jan 2006 21:56:31 +0000 (13:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jan 2006 21:56:31 +0000 (13:56 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c

index f829a4ad3ccca1657ca9e0308ecefd032160a598..1cf305a9f8ddf4067e6e9529c86eb71b25e3a349 100644 (file)
@@ -224,7 +224,7 @@ int ipv6_sock_mc_join(struct sock *sk, int ifindex, struct in6_addr *addr)
 
        mc_lst->ifindex = dev->ifindex;
        mc_lst->sfmode = MCAST_EXCLUDE;
-       mc_lst->sflock = RW_LOCK_UNLOCKED;
+       rwlock_init(&mc_lst->sflock);
        mc_lst->sflist = NULL;
 
        /*