| To: | davem@xxxxxxxxxx |
|---|---|
| Subject: | [PATCH] fix uninitialized proto_list_lock |
| From: | Benjamin LaHaise <bcrl@xxxxxxxxx> |
| Date: | Mon, 4 Apr 2005 13:30:10 -0400 |
| Cc: | netdev@xxxxxxxxxxx |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.1i |
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)
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: pktgen problem (skb refcount) in 2.6.12-rc1, Veeraiyan, Ayyappan |
|---|---|
| Next by Date: | Re: [IPSEC]: Protect against BHs in xfrm_user_policy(), David S. Miller |
| Previous by Thread: | Re: [PATCH bridge-2.6.11] bridge hub_enabled option, Alpt |
| Next by Thread: | Re: [PATCH] fix uninitialized proto_list_lock, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |