[SCSI] fcoe: fix kfree(skb)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Saturday, March 14, 2009 - 1:01 pm

Gitweb:     http://git.kernel.org/linus/e904158159e9812d06646767b7c81846dc3b05e6
Commit:     e904158159e9812d06646767b7c81846dc3b05e6
Parent:     74846bf85e42b4ba851d3f0dd67aa1df245895f9
Author:     Roel Kluin <roel.kluin@gmail.com>
AuthorDate: Fri Feb 27 10:56:22 2009 -0800
Committer:  James Bottomley <James.Bottomley@HansenPartnership.com>
CommitDate: Tue Mar 10 09:09:01 2009 -0500

    [SCSI] fcoe: fix kfree(skb)
    
    Use kfree_skb instead of kfree for struct sk_buff pointers.
    
    Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
    Signed-off-by: Robert Love <robert.w.love@intel.com>
    Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
---
 drivers/scsi/fcoe/libfcoe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
index 7887f2a..7265e09 100644
--- a/drivers/scsi/fcoe/libfcoe.c
+++ b/drivers/scsi/fcoe/libfcoe.c
@@ -437,7 +437,7 @@ int fcoe_xmit(struct fc_lport *lp, struct fc_frame *fp)
 	if (skb_is_nonlinear(skb)) {
 		skb_frag_t *frag;
 		if (fcoe_get_paged_crc_eof(skb, tlen)) {
-			kfree(skb);
+			kfree_skb(skb);
 			return -ENOMEM;
 		}
 		frag = &skb_shinfo(skb)->frags[skb_shinfo(skb)->nr_frags - 1];
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SCSI] fcoe: fix kfree(skb), Linux Kernel Mailing ..., (Sat Mar 14, 1:01 pm)