diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2014-08-03 19:37:52 -0400 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2014-08-04 07:16:14 -0400 |
commit | bfb5087924921f147d4c5d731cbc8c3a069bed0b (patch) | |
tree | 7f4a22bfd803409f1002f1f9087982a20840428c | |
parent | 6f8f31c7a890283bea85c7aac45f089b5766472d (diff) |
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 <michaelc@cs.wisc.edu>
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/scsi/scsi_transport_iscsi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
3468 | 3468 | ||
3469 | err = transport->get_host_stats(shost, buf, host_stats_size); | 3469 | err = transport->get_host_stats(shost, buf, host_stats_size); |
3470 | if (err) { | 3470 | if (err) { |
3471 | kfree(skbhost_stats); | 3471 | kfree_skb(skbhost_stats); |
3472 | goto exit_host_stats; | 3472 | goto exit_host_stats; |
3473 | } | 3473 | } |
3474 | 3474 | ||