Skip to contentSkip to conversation

fcoe: fix kfree(skb)

PATCH New Roel Kluin 1 participant 1 message Jan 2, 2009

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 fcoe: fix kfree(skb)

Use kfree_skb instead of kfree for struct sk_buff pointers.

---

drivers/scsi/fcoe/libfcoe.c +1 -1
index e419f48..41f592f 100644
@@ -439,7 +439,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];