]> git.baikalelectronics.ru Git - kernel.git/commit
perf_counter tools: Initialize a stack variable before use
authorArjan van de Ven <arjan@linux.intel.com>
Sat, 6 Jun 2009 19:22:33 +0000 (21:22 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 6 Jun 2009 19:22:33 +0000 (21:22 +0200)
commit84cdf21ccdb82251579ec1c6be6409e6eefea71e
tree296e7c7438bf7ef3b89a91ed79248b186e540d92
parente37b7e8988bdb217850045608112c26711600e48
perf_counter tools: Initialize a stack variable before use

the "perf report" utility crashed in some circumstances
because the "sym" stack variable was not initialized before used
(as also proven by valgrind).

With this fix both the crash goes away and valgrind no longer complains.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/util/symbol.c