summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-26 15:16:22 +0200
committerToomas Soome <tsoome@me.com>2019-07-26 08:38:58 +0300
commit554bfeed32a95d6fbf43483084ec06005c31033f (patch)
treecfbe10446232babfd1653ac38575b35334241432
parente0a59e987c88dc1f6ff89d2a31408275b8f723ae (diff)
downloadillumos-gate-554bfeed32a95d6fbf43483084ec06005c31033f.tar.gz
11409 psrinfo: NULL pointer errors
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/cmd/psrinfo/psrinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/psrinfo/psrinfo.c b/usr/src/cmd/psrinfo/psrinfo.c
index 1e237b581f..a6d8a99c60 100644
--- a/usr/src/cmd/psrinfo/psrinfo.c
+++ b/usr/src/cmd/psrinfo/psrinfo.c
@@ -575,7 +575,7 @@ main(int argc, char **argv)
if (strcmp(ksp->ks_module, "cpu_info") != 0)
continue;
- if (kstat_read(kc, ksp, NULL) == NULL)
+ if (kstat_read(kc, ksp, NULL) == -1)
die(_("kstat_read() failed"));
vc = find_link(&vcpus, ksp->ks_instance, &ins);