[SCSI] fcoe: kfree() -> kfree_skb()

sk_buff pointers should use kfree_skb() instead of vanilla kfree().

Found by smatch (http://repo.or.cz/w/smatch.git).

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
This commit is contained in:
Dan Carpenter 2009-04-21 16:27:25 -07:00 committed by James Bottomley
parent 55c7a60cf0
commit 3caf02ee28
1 changed files with 1 additions and 1 deletions

View File

@ -1011,7 +1011,7 @@ int fcoe_xmit(struct fc_lport *lp, struct fc_frame *fp)
wlen = skb->len / FCOE_WORD_TO_BYTE;
if (!lp->link_up) {
kfree(skb);
kfree_skb(skb);
return 0;
}