Mercurial > illumos > illumos-gate
diff usr/src/uts/common/os/kcpc.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 | dd00b884e84f |
children |
line wrap: on
line diff
--- a/usr/src/uts/common/os/kcpc.c Wed Aug 11 10:38:16 2010 -0600 +++ b/usr/src/uts/common/os/kcpc.c Wed Aug 11 12:52:19 2010 -0400 @@ -20,8 +20,7 @@ */ /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved. */ #include <sys/param.h> @@ -2281,10 +2280,11 @@ { kcpc_request_t *req; - ASSERT(req_list->krl_max != 0); if (req_list == NULL || req_list->krl_list == NULL) return (-1); + ASSERT(req_list->krl_max != 0); + /* * Allocate more space (if needed) */