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

Commit 48479005 authored by Ming Lei's avatar Ming Lei Committed by Jens Axboe
Browse files

blk-mq: fix allocation of set->tags



type of set->tags is struct blk_mq_tags **.

Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarMing Lei <tom.leiming@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 11471e0d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1537,7 +1537,8 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set)
		return -EINVAL;


	set->tags = kmalloc_node(set->nr_hw_queues * sizeof(struct blk_mq_tags),
	set->tags = kmalloc_node(set->nr_hw_queues *
				 sizeof(struct blk_mq_tags *),
				 GFP_KERNEL, set->numa_node);
	if (!set->tags)
		goto out;