diff options
| author | David Ahern <[email protected]> | 2013-11-12 14:46:53 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2013-11-12 19:30:54 +0000 |
| commit | 8973504be70b2986a2081eeff7d9a4210dec295d (patch) | |
| tree | ac388c9ef74a7de7e21148a835f7b9028b46c62d /drivers/pci/hotplug/ibmphp_hpc.c | |
| parent | perf trace: Add summary only option (diff) | |
| download | kernel-8973504be70b2986a2081eeff7d9a4210dec295d.tar.gz kernel-8973504be70b2986a2081eeff7d9a4210dec295d.zip | |
perf record: Fix segfault with --no-mmap-pages
Adrian reported a segfault when using --no-out-pages:
$ tools/perf/perf record -vv --no-out-pages uname
Segmentation fault (core dumped)
The same occurs with --no-mmap-pages. Fix by checking that str is
non-NULL before parsing it.
Signed-off-by: David Ahern <[email protected]>
Reported-by: Adrian Hunter <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'drivers/pci/hotplug/ibmphp_hpc.c')
0 files changed, 0 insertions, 0 deletions
