We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff76e3d commit 5def442Copy full SHA for 5def442
arch/riscv/mm/context.c
@@ -243,8 +243,7 @@ static int __init asids_init(void)
243
if (num_asids > (2 * num_possible_cpus())) {
244
atomic_long_set(¤t_version, num_asids);
245
246
- context_asid_map = kcalloc(BITS_TO_LONGS(num_asids),
247
- sizeof(*context_asid_map), GFP_KERNEL);
+ context_asid_map = bitmap_zalloc(num_asids, GFP_KERNEL);
248
if (!context_asid_map)
249
panic("Failed to allocate bitmap for %lu ASIDs\n",
250
num_asids);
0 commit comments