Skip to content

Commit

Permalink
[SCSI] fcoe: kfree() -> kfree_skb()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and James Bottomley committed Apr 27, 2009
1 parent 55c7a60 commit 3caf02e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/fcoe/fcoe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3caf02e

Please sign in to comment.