-------- Forwarded Message --------
From: Dan Carpenter <[email protected]>
To: [email protected] <[email protected]>
Cc: [email protected]
<[email protected]>, Dev, Vasu <[email protected]>,
Love, Robert W <[email protected]>
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 <[email protected]>

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

_______________________________________________
devel mailing list
[email protected]
http://www.open-fcoe.org/mailman/listinfo/devel

Reply via email to