netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Hemminger <shemminger@vyatta.com>
To: unlisted-recipients:; (no To-header on input)
Cc: David Miller <davem@davemloft.net>, netdev@vger.kernel.org
Subject: [PATCH] net: missing lock initialization
Date: Fri, 18 Jul 2008 16:38:36 -0700	[thread overview]
Message-ID: <20080718163836.60f5a021@extreme> (raw)
In-Reply-To: <20080718161048.678a9629@extreme>

Looks like the xmit_lock is not being initialized in net-next

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>

--- a/net/core/dev.c	2008-07-18 16:31:16.000000000 -0700
+++ b/net/core/dev.c	2008-07-18 16:35:31.000000000 -0700
@@ -4175,6 +4175,7 @@ static void netdev_init_one_queue(struct
 				  struct netdev_queue *queue,
 				  void *_unused)
 {
+	spin_lock_init(&queue->_xmit_lock);
 	queue->dev = dev;
 }
 

       reply	other threads:[~2008-07-18 23:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20080718161048.678a9629@extreme>
2008-07-18 23:38 ` Stephen Hemminger [this message]
2008-07-19  0:49   ` [PATCH] net: missing lock initialization David Miller

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=20080718163836.60f5a021@extreme \
    --to=shemminger@vyatta.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).