summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2009-02-27 10:56:22 -0800
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-10 09:09:01 -0500
commite904158159e9812d06646767b7c81846dc3b05e6 (patch)
tree5613f2f14214121d36971ddc125584018e4c3148 /drivers/scsi
parent74846bf85e42b4ba851d3f0dd67aa1df245895f9 (diff)
downloadkernel-crypto-e904158159e9812d06646767b7c81846dc3b05e6.tar.gz
kernel-crypto-e904158159e9812d06646767b7c81846dc3b05e6.tar.xz
kernel-crypto-e904158159e9812d06646767b7c81846dc3b05e6.zip
[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>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/fcoe/libfcoe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/libfcoe.c b/drivers/scsi/fcoe/libfcoe.c
index 7887f2a7c2a..7265e093799 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];