public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] netconsole-C2 skb checking
@ 2001-10-01 14:48 Randy.Dunlap
  0 siblings, 0 replies; only message in thread
From: Randy.Dunlap @ 2001-10-01 14:48 UTC (permalink / raw)
  To: mingo, lkml

[-- 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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-10-01 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-10-01 14:48 [patch] netconsole-C2 skb checking Randy.Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox