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
--------------7B7AE9D1A269F75357D761DC
Content-Type: text/plain; charset=us-ascii;
name="netcon-skb.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="netcon-skb.patch"
--- 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;
--------------7B7AE9D1A269F75357D761DC--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/