diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-26 15:16:22 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-07-26 08:38:58 +0300 |
commit | 554bfeed32a95d6fbf43483084ec06005c31033f (patch) | |
tree | cfbe10446232babfd1653ac38575b35334241432 | |
parent | e0a59e987c88dc1f6ff89d2a31408275b8f723ae (diff) | |
download | illumos-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.c | 2 |
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); |