perf hists browser: Fix NULL deref in hists browsing code
[linux-flexiantxendom0-3.2.10.git] / tools / perf / util / ui / browsers / hists.c
index d7a1c4a..2f83e5d 100644 (file)
@@ -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;