summaryrefslogtreecommitdiff
path: root/tools/perf/tests/mem2node.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/mem2node.c')
-rw-r--r--tools/perf/tests/mem2node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/mem2node.c b/tools/perf/tests/mem2node.c
index a258bd51f1a4..e4d0d58b97f8 100644
--- a/tools/perf/tests/mem2node.c
+++ b/tools/perf/tests/mem2node.c
@@ -27,7 +27,7 @@ static unsigned long *get_bitmap(const char *str, int nbits)
unsigned long *bm = NULL;
int i;
- bm = bitmap_alloc(nbits);
+ bm = bitmap_zalloc(nbits);
if (map && bm) {
for (i = 0; i < map->nr; i++) {