summaryrefslogtreecommitdiffstats
path: root/runtime/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/map.c')
-rw-r--r--runtime/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/map.c b/runtime/map.c
index 86a1b270..9fc414a7 100644
--- a/runtime/map.c
+++ b/runtime/map.c
@@ -207,7 +207,7 @@ static int _stp_map_init(MAP m, unsigned max_entries, int type, int key_size, in
if (cpu < 0)
tmp = kmalloc(size, STP_ALLOC_FLAGS);
else
- tmp = kmalloc_node(size, STP_ALLOC_FLAGS, cpu);
+ tmp = kmalloc_node(size, STP_ALLOC_FLAGS, cpu_to_node(cpu));
if (!tmp)
return -1;