All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin LaHaise <bcrl@kvack.org>
To: davem@redhat.com
Cc: netdev@oss.sgi.com
Subject: [PATCH] fix uninitialized proto_list_lock
Date: Mon, 4 Apr 2005 13:30:10 -0400	[thread overview]
Message-ID: <20050404173010.GA19451@kvack.org> (raw)

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)

             reply	other threads:[~2005-04-04 17:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-04 17:30 Benjamin LaHaise [this message]
2005-04-04 17:42 ` [PATCH] fix uninitialized proto_list_lock David S. Miller
2005-04-04 17:45 ` Arnaldo Carvalho de Melo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050404173010.GA19451@kvack.org \
    --to=bcrl@kvack.org \
    --cc=davem@redhat.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.