Mercurial > illumos > illumos-gate
diff usr/src/uts/sparc/os/syscall.c @ 13082:87f89233b883
6964154 Missing unlock in set_all_zone_usr_proc_sys()
6964159 Missing unlock in immu_quiesce() and immu_unquiesce()
6964162 Pointer dereferenced before NULL check in kcpc_reqs_add()
6964446 Uninitialized variable used in rootnex_coredma_bindhdl()
6965638 Potential memory leak in configure_ffc()
6965642 Freeing variable that may be NULL in kmem_free()
author | Ethindra Ramamurthy <Ethindra.Ramamurthy@Sun.COM> |
---|---|
date | Wed, 11 Aug 2010 12:52:19 -0400 |
parents | a63258283f8f |
children |
line wrap: on
line diff
--- a/usr/src/uts/sparc/os/syscall.c Wed Aug 11 10:38:16 2010 -0600 +++ b/usr/src/uts/sparc/os/syscall.c Wed Aug 11 12:52:19 2010 -0400 @@ -20,8 +20,7 @@ */ /* - * Copyright 2010 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved. */ #include <sys/param.h> @@ -1197,8 +1196,10 @@ */ if (zoneid == ALL_ZONES || p->p_zone->zone_id == zoneid) { mutex_enter(&p->p_lock); - if ((t = p->p_tlist) == NULL) + if ((t = p->p_tlist) == NULL) { + mutex_exit(&p->p_lock); continue; + } /* * Set pre- and post-syscall processing flags * for all threads of the process