diff options
author | Dan Carpenter <error27@gmail.com> | 2009-04-21 19:27:25 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 11:19:23 -0400 |
commit | 3caf02ee280a171074476d346d01dc0f5e05b22c (patch) | |
tree | c63789fa9caaaac588143dcf4c255bc88fc1a54c | |
parent | 55c7a60cf0c9113cb52d2b87abb120e951bdb332 (diff) |
[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>
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 94e1e3189773..13a0a6fdefcc 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -1011,7 +1011,7 @@ int fcoe_xmit(struct fc_lport *lp, struct fc_frame *fp) | |||
1011 | wlen = skb->len / FCOE_WORD_TO_BYTE; | 1011 | wlen = skb->len / FCOE_WORD_TO_BYTE; |
1012 | 1012 | ||
1013 | if (!lp->link_up) { | 1013 | if (!lp->link_up) { |
1014 | kfree(skb); | 1014 | kfree_skb(skb); |
1015 | return 0; | 1015 | return 0; |
1016 | } | 1016 | } |
1017 | 1017 | ||