lkml.org 
[lkml]   [2000]   [Aug]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] net/appletalk/ddp.c: small fix in skb usage
Hi,

Please take a look and consider applying.

- Arnaldo

--- linux-2.4.0-test7-pre3/net/appletalk/ddp.c.orig Sun Aug 20 03:10:24 2000
+++ linux-2.4.0-test7-pre3/net/appletalk/ddp.c Sun Aug 20 03:13:21 2000
@@ -37,7 +37,8 @@
* port assignment. we lose a
* valid localtalk port as a
* result.
- *
+ * Arnaldo Carvalho de Melo: fix some skb manipulation in
+ * atalk_rcv
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -1611,7 +1612,10 @@
struct sk_buff *newskb;
/* 22 bytes - 12 ether, 2 len, 3 802.2 5 snap */
newskb = skb_realloc_headroom(skb, 32);
- kfree(skb);
+ kfree_skb(skb);
+ if (!newskb)
+ return 0;
+ skb = NULL;
}
else
skb = skb_unshare(skb, GFP_ATOMIC);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:37    [W:0.037 / U:5.292 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site