提交 bfb50879 编写于 作者: M Mike Christie 提交者: Christoph Hellwig

iscsi class: Fix freeing of skb in get host error path

If get_host_stats failes we are using kfree to free the
skb. We should be using kfree_skb.

This patch was made over Christoph's scsi-queue drivers-for-3.17 branch.
Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: NChristoph Hellwig <hch@lst.de>
上级 6f8f31c7
...@@ -3468,7 +3468,7 @@ iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh) ...@@ -3468,7 +3468,7 @@ iscsi_get_host_stats(struct iscsi_transport *transport, struct nlmsghdr *nlh)
err = transport->get_host_stats(shost, buf, host_stats_size); err = transport->get_host_stats(shost, buf, host_stats_size);
if (err) { if (err) {
kfree(skbhost_stats); kfree_skb(skbhost_stats);
goto exit_host_stats; goto exit_host_stats;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册