summaryrefslogtreecommitdiff
path: root/usr.sbin/pmcstat/pmcpl_callgraph.c
diff options
context:
space:
mode:
authorFabien Thomas <fabient@FreeBSD.org>2010-04-14 21:53:27 +0000
committerFabien Thomas <fabient@FreeBSD.org>2010-04-14 21:53:27 +0000
commit410c7662749344645598007a28d70d283541347d (patch)
tree0f2ef86dfd8880d12e16350481d03b612494a973 /usr.sbin/pmcstat/pmcpl_callgraph.c
parentf6b93040fd95c76758b371e160dbf6d996b14336 (diff)
downloadsrc-test2-410c7662749344645598007a28d70d283541347d.tar.gz
src-test2-410c7662749344645598007a28d70d283541347d.zip
Notes
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 53d342bfdc15..d948b77f43b6 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