All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix uninitialized proto_list_lock
@ 2005-04-04 17:30 Benjamin LaHaise
  2005-04-04 17:42 ` David S. Miller
  2005-04-04 17:45 ` Arnaldo Carvalho de Melo
  0 siblings, 2 replies; 3+ messages in thread
From: Benjamin LaHaise @ 2005-04-04 17:30 UTC (permalink / raw)
  To: davem; +Cc: netdev

Please apply the following patch which fixes a BUG() on boot when the 
kernel is compiled with spinlock debugging in bk head.  Cheers,

		-ben

===== net/core/sock.c 1.67 vs edited =====
--- 1.67/net/core/sock.c	2005-03-26 18:04:35 -05:00
+++ edited/net/core/sock.c	2005-04-04 12:46:26 -04:00
@@ -1352,7 +1352,7 @@
 
 EXPORT_SYMBOL(sk_common_release);
 
-static rwlock_t proto_list_lock;
+static rwlock_t proto_list_lock = RW_LOCK_UNLOCKED;
 static LIST_HEAD(proto_list);
 
 int proto_register(struct proto *prot, int alloc_slab)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-04-04 17:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-04 17:30 [PATCH] fix uninitialized proto_list_lock Benjamin LaHaise
2005-04-04 17:42 ` David S. Miller
2005-04-04 17:45 ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.