changeset 925:f4f8625e078f

6350363 anon_array_try_enter needs to initialise sobj->sync_cv
author cwb
date Tue, 15 Nov 2005 13:32:57 -0800
parents 0366bf445df6
children b35734c182ef
files usr/src/uts/common/vm/vm_anon.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/vm/vm_anon.c	Tue Nov 15 09:40:32 2005 -0800
+++ b/usr/src/uts/common/vm/vm_anon.c	Tue Nov 15 13:32:57 2005 -0800
@@ -2,9 +2,8 @@
  * CDDL HEADER START
  *
  * The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License").  You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
  *
  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  * or http://www.opensolaris.org/os/licensing.
@@ -3218,6 +3217,7 @@
 	an_idx = P2ALIGN(an_idx, page_get_pagecnt(amp->a_szc));
 	hash = ANON_ARRAY_HASH(amp, an_idx);
 	sobj->sync_mutex = mtx = &anon_array_lock[hash].pad_mutex;
+	sobj->sync_cv = &anon_array_cv[hash];
 	if (!mutex_tryenter(mtx)) {
 		return (EWOULDBLOCK);
 	}