Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bfb50879 authored by Mike Christie's avatar Mike Christie Committed by Christoph Hellwig
Browse files

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: default avatarMike Christie <michaelc@cs.wisc.edu>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 6f8f31c7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
		}