lkml.org 
[lkml]   [2001]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch] netconsole-C2 skb checking
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--- 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;
\
 
 \ /
  Last update: 2005-03-22 13:03    [W:0.018 / U:2.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site