summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/pool.c
diff options
context:
space:
mode:
authorDan McDonald <danmcd@mnx.io>2022-05-13 17:20:24 -0400
committerGitHub <noreply@github.com>2022-05-13 17:20:24 -0400
commitbb7d6c9b47695f41cbacbcf6662baf3d0e152fdf (patch)
tree75f2d0cab5fb92f97f2ab2c3186a0b5d1579a33a /usr/src/uts/common/os/pool.c
parent8ca5534c77e93c25d2c1f777499b12da0f7cc0cd (diff)
parent402559e299331588f209b3a9693e3bcd6a83d22c (diff)
downloadillumos-joyent-OS-8149.tar.gz
Merge branch 'master' into OS-8149OS-8149
Diffstat (limited to 'usr/src/uts/common/os/pool.c')
-rw-r--r--usr/src/uts/common/os/pool.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/src/uts/common/os/pool.c b/usr/src/uts/common/os/pool.c
index f9fe8649c0..57bd2241fd 100644
--- a/usr/src/uts/common/os/pool.c
+++ b/usr/src/uts/common/os/pool.c
@@ -1441,9 +1441,13 @@ pool_do_bind(pool_t *pool, idtype_t idtype, id_t id, int flags)
switch (idtype) {
case P_PID:
case P_TASKID:
+ default:
+
/*
- * Can't bind processes or tasks
- * in local zones to pools.
+ * Can't bind processes or tasks in local zones
+ * to pools. Also catch all remaining types of
+ * idtype_t that should already have been
+ * filtered out.
*/
mutex_exit(&p->p_lock);
mutex_exit(&pidlock);
@@ -1715,6 +1719,8 @@ out: switch (idtype) {
zone->zone_pool_mod = gethrtime();
zone_rele(zone);
break;
+ default:
+ break;
}
kmem_free(procs, procs_size * sizeof (proc_t *));