]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] fcoe: fix kfree(skb)
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 27 Feb 2009 18:56:22 +0000 (10:56 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 10 Mar 2009 14:09:01 +0000 (09:09 -0500)
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

index 7887f2a7c2aae888ee0399e1145e3ef6c571d2f4..7265e093799549ecb0c94072f64b931946046b8b 100644 (file)
@@ -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];