X-Git-Url: http://git.monstr.eu/?p=linux-2.6-microblaze.git;a=blobdiff_plain;f=tools%2Fperf%2Futil%2Fheader.c;h=1c7414f666552c23fbc2ed2a24605fca138a3b64;hp=d2231cb7c4f7b3677a81429302a1c10e4dda6a4b;hb=2d338201d5311bcd79d42f66df4cecbcbc5f4f2c;hpb=cc09ee80c3b18ae1a897a30a17fe710b2b2f620a diff --git a/tools/perf/util/header.c b/tools/perf/util/header.c index d2231cb7c4f7..1c7414f66655 100644 --- a/tools/perf/util/header.c +++ b/tools/perf/util/header.c @@ -278,7 +278,7 @@ static int do_read_bitmap(struct feat_fd *ff, unsigned long **pset, u64 *psize) if (ret) return ret; - set = bitmap_alloc(size); + set = bitmap_zalloc(size); if (!set) return -ENOMEM; @@ -1294,7 +1294,7 @@ static int memory_node__read(struct memory_node *n, unsigned long idx) size++; - n->set = bitmap_alloc(size); + n->set = bitmap_zalloc(size); if (!n->set) { closedir(dir); return -ENOMEM;