Add a missing com_unlock() to the serial port drain test code. This code
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 12 Nov 2004 20:51:29 +0000 (20:51 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 12 Nov 2004 20:51:29 +0000 (20:51 +0000)
commita936b321c0ab4743f6e500b429b075548b14a7cf
treeb3f2dcfff535d753fde0a2e69d1f59434f7bf2ac
parentdcf8589240782788ffc3d2b85069379201f4d90a
Add a missing com_unlock() to the serial port drain test code.  This code
is necessary to detect non-existant serial ports on machines (such as the
eMachines laptop) which don't have any serial port hardware at all, but
the missing com_unlock() caused systems to crash in certain situations for
obvious reasons.

Many thanks to Glenn Johnson <glennpj@charter.net> for keeping on my back
about the issue and for testing the fix.  This should also fix the last of the
serial-port related bug reports stemming from the original 1.0A release.
sys/dev/serial/sio/sio.c