diff options
| -rw-r--r-- | block/blk-mq-cpumap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-cpumap.c b/block/blk-mq-cpumap.c index 1065d7c65fa1..72e5ed691e37 100644 --- a/block/blk-mq-cpumap.c +++ b/block/blk-mq-cpumap.c | |||
| @@ -90,7 +90,7 @@ unsigned int *blk_mq_make_queue_map(struct blk_mq_tag_set *set) | |||
| 90 | unsigned int *map; | 90 | unsigned int *map; |
| 91 | 91 | ||
| 92 | /* If cpus are offline, map them to first hctx */ | 92 | /* If cpus are offline, map them to first hctx */ |
| 93 | map = kzalloc_node(sizeof(*map) * num_possible_cpus(), GFP_KERNEL, | 93 | map = kzalloc_node(sizeof(*map) * nr_cpu_ids, GFP_KERNEL, |
| 94 | set->numa_node); | 94 | set->numa_node); |
| 95 | if (!map) | 95 | if (!map) |
| 96 | return NULL; | 96 | return NULL; |
