aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorMing Lei <tom.leiming@gmail.com>2014-04-19 06:00:17 -0400
committerJens Axboe <axboe@fb.com>2014-04-21 12:38:36 -0400
commit4847900532c2dc0fc77b67f745c20e636d5b3125 (patch)
tree51f6c5e4fec5fc2af5aeb50086e9625fa364ef0b /block
parent11471e0d04f3762b9216d8421ce6e9d89b0bf450 (diff)
blk-mq: fix allocation of set->tags
type of set->tags is struct blk_mq_tags **. Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/blk-mq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 5fbbb221d499..c2777970f28b 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -1537,7 +1537,8 @@ int blk_mq_alloc_tag_set(struct blk_mq_tag_set *set)
1537 return -EINVAL; 1537 return -EINVAL;
1538 1538
1539 1539
1540 set->tags = kmalloc_node(set->nr_hw_queues * sizeof(struct blk_mq_tags), 1540 set->tags = kmalloc_node(set->nr_hw_queues *
1541 sizeof(struct blk_mq_tags *),
1541 GFP_KERNEL, set->numa_node); 1542 GFP_KERNEL, set->numa_node);
1542 if (!set->tags) 1543 if (!set->tags)
1543 goto out; 1544 goto out;