diff options
Diffstat (limited to 'tools/perf/util/trace-event-parse.c')
| -rw-r--r-- | tools/perf/util/trace-event-parse.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 0302405aa2c..6ffe9d63d85 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c @@ -177,7 +177,7 @@ void parse_proc_kallsyms(char *file, unsigned int size __unused)  		func_count++;  	} -	func_list = malloc_or_die(sizeof(*func_list) * func_count + 1); +	func_list = malloc_or_die(sizeof(*func_list) * (func_count + 1));  	i = 0;  	while (list) {  |