summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-20 13:21:59 +0200
committerToomas Soome <tsoome@me.com>2019-04-18 17:06:25 +0300
commit0e9010a07773b58f294e1a0824eebea0b9f37eb8 (patch)
tree76acd4649599a6db67c2b2e1053271cb8a689805
parent639c732ede1f837c0ccd952d813f5b85fc9e0abf (diff)
downloadillumos-joyent-0e9010a07773b58f294e1a0824eebea0b9f37eb8.tar.gz
10755 pset: NULL pointer errors
Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r--usr/src/uts/common/syscall/pset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/syscall/pset.c b/usr/src/uts/common/syscall/pset.c
index 645f005177..6f07961c8a 100644
--- a/usr/src/uts/common/syscall/pset.c
+++ b/usr/src/uts/common/syscall/pset.c
@@ -769,7 +769,7 @@ pset_list(psetid_t *psetlist, uint_t *numpsets)
psets[0] = psetid;
}
} else {
- real_npsets = cpupart_list(0, NULL, CP_ALL);
+ real_npsets = cpupart_list(NULL, 0, CP_ALL);
if (real_npsets) {
psets = kmem_alloc(real_npsets * sizeof (psetid_t),
KM_SLEEP);