|
@@ -2047,7 +2047,7 @@ static int blk_mq_init_hctx(struct request_queue *q,
|
|
* Allocate space for all possible cpus to avoid allocation at
|
|
* Allocate space for all possible cpus to avoid allocation at
|
|
* runtime
|
|
* runtime
|
|
*/
|
|
*/
|
|
- hctx->ctxs = kmalloc_node(nr_cpu_ids * sizeof(void *),
|
|
|
|
|
|
+ hctx->ctxs = kmalloc_array_node(nr_cpu_ids, sizeof(void *),
|
|
GFP_KERNEL, node);
|
|
GFP_KERNEL, node);
|
|
if (!hctx->ctxs)
|
|
if (!hctx->ctxs)
|
|
goto unregister_cpu_notifier;
|
|
goto unregister_cpu_notifier;
|