diff options
author | Ming Lei <tom.leiming@gmail.com> | 2014-04-19 18:00:17 +0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2014-04-21 10:38:36 -0600 |
commit | 4847900532c2dc0fc77b67f745c20e636d5b3125 (patch) | |
tree | 51f6c5e4fec5fc2af5aeb50086e9625fa364ef0b /block/blk-mq.c | |
parent | 11471e0d04f3762b9216d8421ce6e9d89b0bf450 (diff) | |
download | op-kernel-dev-4847900532c2dc0fc77b67f745c20e636d5b3125.zip op-kernel-dev-4847900532c2dc0fc77b67f745c20e636d5b3125.tar.gz |
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; |