psm - Fix panic in ps/2 mouse driver
commit1ea2893e99482291345e6c798d20cfef84d6ed07
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 12 Mar 2019 04:10:12 +0000 (11 21:10 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 12 Mar 2019 04:10:12 +0000 (11 21:10 -0700)
tree9cb51629b322bbcb2d2b559ee0c80662a766a16b
parentd0975e245898ed621e15cfb81acdd4a402082d44
psm - Fix panic in ps/2 mouse driver

* Fix a race in the ps/2 driver where a callout could be interrupted
  by psmintr() and corrupt the ps/2 packet buffer, causing a panic.

* Use a lockmgr lock instead of (archaic) critical sections for interrupt
  protection.  Also use the locked callout API.  This will hopefully
  prevent any further corruption.

Reported-by: drill-use@irc
sys/dev/misc/psm/psm.c