mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Update mcast rwlock for RT
@ 2006-01-03 17:27 Daniel Walker
  0 siblings, 0 replies; only message in thread
From: Daniel Walker @ 2006-01-03 17:27 UTC (permalink / raw)
  To: mingo; +Cc: linux-kernel


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

Signed-Off-By: Daniel Walker <dwalker@mvista.com>

Index: linux-2.6.15/net/ipv6/mcast.c
===================================================================
--- linux-2.6.15.orig/net/ipv6/mcast.c
+++ 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;
 
 	/*



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-01-03 17:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-03 17:27 [PATCH] Update mcast rwlock for RT Daniel Walker

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®