Subject: CVS commit: src/sys/dev/wscons
To: None <source-changes@NetBSD.org>
From: Christos Zoulas <firstname.lastname@example.org>
Date: 02/10/2006 17:33:02
Module Name: src
Committed By: christos
Date: Fri Feb 10 17:33:02 UTC 2006
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.