summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 22949ab087ec..80cef0632079 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -635,7 +635,7 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_reg *reg,
for_each_possible_cpu(i) {
struct blk_mq_ctx *__ctx = per_cpu_ptr(ctx, i);
- hctx = q->mq_ops->map_queue(q, ctx);
+ hctx = q->mq_ops->map_queue(q, __ctx);
hctx->nr_ctx++;
memset(__ctx, 0, sizeof(*__ctx));