diff options
Diffstat (limited to 'usr/src/uts/common/os/pool.c')
| -rw-r--r-- | usr/src/uts/common/os/pool.c | 10 |
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 *)); |
