Subject: PR/32794 CVS commit: src/sys/dev/wscons
To: None <,,>
From: Christos Zoulas <>
List: netbsd-bugs
Date: 02/10/2006 17:35:02
The following reply was made to PR kern/32794; it has been noted by GNATS.

From: Christos Zoulas <>
Subject: PR/32794 CVS commit: src/sys/dev/wscons
Date: Fri, 10 Feb 2006 17:33:02 +0000 (UTC)

 Module Name:	src
 Committed By:	christos
 Date:		Fri Feb 10 17:33:02 UTC 2006
 Modified Files:
 	src/sys/dev/wscons: wsmouse.c
 Log Message:
 PR/32794: Paul Shupak: Panic in wsmouse code.
 Checking the number of events after you've trashed the stack is not very
 useful. Instead, break out of the loop if we ran out, printing a message.
 Also don't try to inject 0 events; reset our state instead. Maybe having
 0 events should be a diagnostic printf at this point? Anyway it is not
 nice having the kernel die because the mouse code got confused. Finally,
 explain why the array of events is sized funny.
 To generate a diff of this commit:
 cvs rdiff -r1.40 -r1.41 src/sys/dev/wscons/wsmouse.c
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.