From: Mike Christie Date: Sun, 3 Aug 2014 23:37:52 +0000 (-0500) Subject: iscsi class: Fix freeing of skb in get host error path X-Git-Tag: omap-for-v3.17/fixes-against-rc2~51^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfb5087924921f147d4c5d731cbc8c3a069bed0b;p=pandora-kernel.git 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: Mike Christie Signed-off-by: Christoph Hellwig --- diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c index 534d3fb87658..67d43e35693d 100644 --- a/drivers/scsi/scsi_transport_iscsi.c +++ b/drivers/scsi/scsi_transport_iscsi.c @@ -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); if (err) { - kfree(skbhost_stats); + kfree_skb(skbhost_stats); goto exit_host_stats; }