From: "Randy.Dunlap" <rddunlap@osdlab.org>
To: mingo@elte.hu, lkml <linux-kernel@vger.kernel.org>
Subject: [patch] netconsole-C2 skb checking
Date: Mon, 01 Oct 2001 07:48:38 -0700 [thread overview]
Message-ID: <3BB88246.ED5F3072@osdlab.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 149 bytes --]
Hi Ingo,
This small patch handles skb allocation a bit
more cleanly.
I didn't see that anyone else had already seen this.
Please apply/use.
~Randy
[-- Attachment #2: netcon-skb.patch --]
[-- Type: text/plain, Size: 434 bytes --]
--- linux/drivers/net/netconsole.c.org Fri Sep 28 17:46:24 2001
+++ linux/drivers/net/netconsole.c Mon Oct 1 07:43:31 2001
@@ -96,10 +96,11 @@
spin_lock_irqsave(&netconsole_lock, flags);
skb = netconsole_skbs;
- if (skb)
+ if (skb) {
netconsole_skbs = skb->next;
- skb->next = NULL;
- nr_netconsole_skbs--;
+ skb->next = NULL;
+ nr_netconsole_skbs--;
+ }
spin_unlock_irqrestore(&netconsole_lock, flags);
return skb;
reply other threads:[~2001-10-01 14:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3BB88246.ED5F3072@osdlab.org \
--to=rddunlap@osdlab.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/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