changeset 9945:727d00dde35c

6848184 assert failed: STATEP->init_tid != 0 after suspend/resume
author rui zang - Sun Microsystems - Beijing China <Aaron.Zang@Sun.COM>
date Tue, 23 Jun 2009 09:05:45 +0800
parents 41f16633c290
children 86a051e72232
files usr/src/uts/common/io/vuidmice/vuidps2.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/vuidmice/vuidps2.c	Mon Jun 22 17:48:42 2009 -0700
+++ b/usr/src/uts/common/io/vuidmice/vuidps2.c	Tue Jun 23 09:05:45 2009 +0800
@@ -556,7 +556,9 @@
 			 */
 			if (STATEP->inited & PS2_FLAG_INIT_TIMEOUT) {
 				STATEP->inited &= ~PS2_FLAG_INIT_TIMEOUT;
+				STATEP->init_count = 0;
 				vuid_set_timeout(qp, PS2_INIT_TMOUT_RESET);
+				break;
 			}
 
 			STATEP->state = PS2_WAIT_RESET_AA;