diff options
author | Ming Lei <tom.leiming@gmail.com> | 2014-04-19 10:00:17 (GMT) |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-21 16:38:36 (GMT) |
commit | 4847900532c2dc0fc77b67f745c20e636d5b3125 (patch) | |
tree | 51f6c5e4fec5fc2af5aeb50086e9625fa364ef0b /block/blk-mq.c | |
parent | 11471e0d04f3762b9216d8421ce6e9d89b0bf450 (diff) | |
download | linux-4847900532c2dc0fc77b67f745c20e636d5b3125.tar.xz |
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/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 5fbbb22..c277797 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) 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; |