summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pmcstat/pmcpl_callgraph.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pmcstat/pmcpl_callgraph.c')
-rw-r--r--usr.sbin/pmcstat/pmcpl_callgraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/pmcstat/pmcpl_callgraph.c b/usr.sbin/pmcstat/pmcpl_callgraph.c
index 53d342b..d948b77 100644
--- a/usr.sbin/pmcstat/pmcpl_callgraph.c
+++ b/usr.sbin/pmcstat/pmcpl_callgraph.c
@@ -581,6 +581,8 @@ pmcpl_cg_topdisplay(void)
struct pmcstat_pmcrecord *pmcr;
pmcr = pmcstat_pmcindex_to_pmcr(pmcstat_pmcinfilter);
+ if (!pmcr)
+ err(EX_SOFTWARE, "ERROR: invalid pmcindex");
/*
* We pull out all callgraph nodes in the top-level hash table
OpenPOWER on IntegriCloud