block/blk-mq.c: use kmalloc_array_node()
[sfrench/cifs-2.6.git] / block / blk-mq.c
index b600463791ec8a2f17f777dd580f337b450739c5..11097477eeab6591088ca817d4690535e114e699 100644 (file)
@@ -2047,7 +2047,7 @@ static int blk_mq_init_hctx(struct request_queue *q,
         * Allocate space for all possible cpus to avoid allocation at
         * runtime
         */
-       hctx->ctxs = kmalloc_node(nr_cpu_ids * sizeof(void *),
+       hctx->ctxs = kmalloc_array_node(nr_cpu_ids, sizeof(void *),
                                        GFP_KERNEL, node);
        if (!hctx->ctxs)
                goto unregister_cpu_notifier;