summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-12-19 14:59:29 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-01-24 20:40:13 +0100
commit20914ce5b9e1ef4a35f1f09a2c9c8fb8eb1c4d86 (patch)
tree3467079f6c41505b1541e14f4119afb2dec8a827 /tools/perf/tests
parentperf machine: Simplify accessing the host machine (diff)
downloadlinux-20914ce5b9e1ef4a35f1f09a2c9c8fb8eb1c4d86.tar.xz
linux-20914ce5b9e1ef4a35f1f09a2c9c8fb8eb1c4d86.zip
perf kvm: Initialize file_name var to fix segfault
The 3786063 commit: perf kvm: Rename perf_kvm to perf_kvm_stat Moved the file_name from inside a local struct var that initialized some of its members, thus zero initializing the not explicitely initialized variables, one of which was 'file_name', to a standalone local variable, but forgot to initialize it explicitely to NULL, so it then got some undefined value, causing a segfault in strdup when it wasn't, by luck, zero. Fix it by explicitely initializing it to NULL. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Link: http://lkml.kernel.org/n/tip-qo2jevp1bdcnh8khzdazs17s@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
0 files changed, 0 insertions, 0 deletions