summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/ui/browsers/hists.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2012-04-13 09:47:04 +0200
committerIngo Molnar <mingo@kernel.org>2012-04-13 09:47:04 +0200
commita7ca08038b990e2cbed324948664b2d8940fd782 (patch)
treec92e113441f9556e08fe7d10bdd40392b7bdef07 /tools/perf/util/ui/browsers/hists.c
parent4166fb64593514ad920b7dbd290e0a934b37d24a (diff)
parent7fb0a5ee8889488f7568ffddffeb66ddeb50917e (diff)
downloadlinux-stable-a7ca08038b990e2cbed324948664b2d8940fd782.tar.gz
linux-stable-a7ca08038b990e2cbed324948664b2d8940fd782.tar.bz2
linux-stable-a7ca08038b990e2cbed324948664b2d8940fd782.zip
Merge tag 'perf-urgent-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/urgent
Pull various perf tooling fixes from Arnaldo Carvalho de Melo.
Diffstat (limited to 'tools/perf/util/ui/browsers/hists.c')
-rw-r--r--tools/perf/util/ui/browsers/hists.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/ui/browsers/hists.c b/tools/perf/util/ui/browsers/hists.c
index d7a1c4afe28b..2f83e5dc9967 100644
--- a/tools/perf/util/ui/browsers/hists.c
+++ b/tools/perf/util/ui/browsers/hists.c
@@ -125,6 +125,9 @@ static int callchain__count_rows(struct rb_root *chain)
static bool map_symbol__toggle_fold(struct map_symbol *self)
{
+ if (!self)
+ return false;
+
if (!self->has_children)
return false;