diff options
author | Dan Carpenter <error27@gmail.com> | 2009-04-21 16:27:25 -0700 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-04-27 10:19:23 -0500 |
commit | 3caf02ee280a171074476d346d01dc0f5e05b22c (patch) | |
tree | c63789fa9caaaac588143dcf4c255bc88fc1a54c /drivers/scsi | |
parent | 55c7a60cf0c9113cb52d2b87abb120e951bdb332 (diff) | |
download | kernel_samsung_espresso10-3caf02ee280a171074476d346d01dc0f5e05b22c.zip kernel_samsung_espresso10-3caf02ee280a171074476d346d01dc0f5e05b22c.tar.gz kernel_samsung_espresso10-3caf02ee280a171074476d346d01dc0f5e05b22c.tar.bz2 |
[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>
Diffstat (limited to 'drivers/scsi')
-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 94e1e31..13a0a6f 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) wlen = skb->len / FCOE_WORD_TO_BYTE; if (!lp->link_up) { - kfree(skb); + kfree_skb(skb); return 0; } |