summaryrefslogtreecommitdiff
path: root/tools/perf/tests/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/bitmap.c')
-rw-r--r--tools/perf/tests/bitmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/bitmap.c b/tools/perf/tests/bitmap.c
index 96c137360918..12b805efdca0 100644
--- a/tools/perf/tests/bitmap.c
+++ b/tools/perf/tests/bitmap.c
@@ -14,7 +14,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++)