[PATCH] Update mcast rwlock for RT

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-Off-By: Daniel Walker <[email protected]>

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;
 
 	/*


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux