]> git.baikalelectronics.ru Git - kernel.git/commit
perf values: Zero value buffers
authorJiri Olsa <jolsa@kernel.org>
Thu, 24 Aug 2017 16:27:35 +0000 (18:27 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Aug 2017 19:44:43 +0000 (16:44 -0300)
commit76961ae36923d6f4832f4c2b80410fb0fd13ddf8
treed31073983e7692d77458407a79b4aab1ea123632
parent28b7ad7e496ac214d1b6e081c37d68fc6ad4795f
perf values: Zero value buffers

We need to make sure the array of value pointers are zero initialized,
because we use them in realloc later on and uninitialized non zero value
will cause allocation error and aborted execution.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <andi@firstfloor.org>
Cc: David Ahern <dsahern@gmail.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20170824162737.7813-9-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/values.c