Skip to content

Commit

Permalink
fcoe: Use kfree_skb() instead of kfree()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Martin K. Petersen committed Aug 5, 2016
1 parent c8e18ac commit ea0a95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/fcoe/fcoe_ctlr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit ea0a95d

Please sign in to comment.