Skip to contentSkip to conversation

Update mcast rwlock for RT

PATCH New Daniel Walker 1 participant 1 message Jan 3, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update mcast rwlock for RT

Corrects this mcast lock for RT . Seems like this should
really be an rwlock_init() .

net/ipv6/mcast.c +1 -1
Index: linux-2.6.15/net/ipv6/mcast.c
===================================================================
@@ -224,7 +224,7 @@ int ipv6_sock_mc_join(struct sock *sk, i
 
 	mc_lst->ifindex = dev->ifindex;
 	mc_lst->sfmode = MCAST_EXCLUDE;
-	mc_lst->sflock = RW_LOCK_UNLOCKED;
+	mc_lst->sflock = RW_LOCK_UNLOCKED(mc_lst->sflock);
 	mc_lst->sflist = NULL;
 
 	/*