[Open-FCoE] [Fwd: [patch] kfree() -> kfree_skb()]

Robert Love robert.w.love at intel.com
Tue Apr 14 16:17:55 UTC 2009


-------- Forwarded Message --------
From: Dan Carpenter <error27 at gmail.com>
To: jeykholt at cisco.com <jeykholt at cisco.com>
Cc: James.Bottomley at HansenPartnership.com
<James.Bottomley at HansenPartnership.com>, Dev, Vasu <vasu.dev at intel.com>,
Love, Robert W <robert.w.love at intel.com>
Subject: [patch] kfree() -> kfree_skb()
Date: Tue, 14 Apr 2009 03:22:40 -0700

sk_buff pointers should use kfree_skb() instead of vanilla kfree().

Sorry if this is the wrong CC list.
Found by smatch (http://repo.or.cz/w/smatch.git).

regards,
dan carpenter

Signed-off-by: Dan Carpenter <error27 at gmail.com>

--- orig/drivers/scsi/fcoe/fcoe.c	2009-04-11 13:48:01.000000000 +0300
+++ devel/drivers/scsi/fcoe/fcoe.c	2009-04-11 13:48:12.000000000 +0300
@@ -1011,7 +1011,7 @@
 	wlen = skb->len / FCOE_WORD_TO_BYTE;
 
 	if (!lp->link_up) {
-		kfree(skb);
+		kfree_skb(skb);
 		return 0;
 	}
 




More information about the devel mailing list