Message ID | 1469430033-8422-1-git-send-email-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
On Mon, Jul 25, 2016 at 07:00:33AM +0000, Wei Yongjun wrote: > 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>
>>>>> "Wei" == Wei Yongjun <weiyj.lk@gmail.com> writes:
Wei> Use kfree_skb() instead of kfree() to free sk_buff.
Applied to 4.8/scsi-queue.
diff --git a/drivers/scsi/fcoe/fcoe_ctlr.c b/drivers/scsi/fcoe/fcoe_ctlr.c index a569c65..dcf3653 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; }
Use kfree_skb() instead of kfree() to free sk_buff. Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> --- drivers/scsi/fcoe/fcoe_ctlr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html