comparison usr/src/uts/common/os/kmem.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 2d92cdff89ce
children
comparison
equal deleted inserted replaced
13081:79b387e27d99 13082:87f89233b883
2969 kmem_big_alloc_table_max) { 2969 kmem_big_alloc_table_max) {
2970 cp = kmem_big_alloc_table[index]; 2970 cp = kmem_big_alloc_table[index];
2971 /* fall through to kmem_cache_free() */ 2971 /* fall through to kmem_cache_free() */
2972 2972
2973 } else { 2973 } else {
2974 EQUIV(buf == NULL, size == 0);
2974 if (buf == NULL && size == 0) 2975 if (buf == NULL && size == 0)
2975 return; 2976 return;
2976 vmem_free(kmem_oversize_arena, buf, size); 2977 vmem_free(kmem_oversize_arena, buf, size);
2977 return; 2978 return;
2978 } 2979 }