summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-07-25 10:00:33 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2016-08-05 04:29:02 +0300
commitea0a95d7f162bfa1c9df74471f0064f71cdf80ea (patch)
tree813e6777ab6af2a6dd0f5b5058a4c06f694397f2 /drivers/scsi
parentc8e18acccb9be6dd1aa4fb8dbc1b98b3b7d6d8e1 (diff)
downloadlinux-ea0a95d7f162bfa1c9df74471f0064f71cdf80ea.tar.xz
fcoe: Use kfree_skb() instead of kfree()
Use kfree_skb() instead of kfree() to free sk_buff. Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Acked-by: Johannes Thumshirn <jth@kernel.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/fcoe/fcoe_ctlr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe_ctlr.c b/drivers/scsi/fcoe/fcoe_ctlr.c
index a569c65f22b1..dcf36537a767 100644
--- a/drivers/scsi/fcoe/fcoe_ctlr.c
+++ b/drivers/scsi/fcoe/fcoe_ctlr.c
@@ -2923,7 +2923,7 @@ static int fcoe_ctlr_vlan_recv(struct fcoe_ctlr *fip, struct sk_buff *skb)
mutex_unlock(&fip->ctlr_mutex);
drop:
- kfree(skb);
+ kfree_skb(skb);
return rc;
}