summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fcoe/fcoe_ctlr.c
diff options
context:
space:
mode:
authorWei Yongjun <weiyj.lk@gmail.com>2016-07-25 09:00:33 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2016-08-05 03:29:02 +0200
commitea0a95d7f162bfa1c9df74471f0064f71cdf80ea (patch)
tree813e6777ab6af2a6dd0f5b5058a4c06f694397f2 /drivers/scsi/fcoe/fcoe_ctlr.c
parentipr: Fix error return code in ipr_probe_ioa() (diff)
downloadlinux-ea0a95d7f162bfa1c9df74471f0064f71cdf80ea.tar.xz
linux-ea0a95d7f162bfa1c9df74471f0064f71cdf80ea.zip
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/fcoe/fcoe_ctlr.c')
-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;
}