The usbcom's device was being released too early in the close sequence.
authorMatthew Dillon <dillon@dragonflybsd.org>
Sun, 6 Jun 2004 18:58:09 +0000 (18:58 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Sun, 6 Jun 2004 18:58:09 +0000 (18:58 +0000)
commit77ab1ae2ab8b8638f9293c2264335aee60be2642
tree032ee062558949a9579aa05934a9cfa243c9762a
parent72402f22d9ebbf44b4fef76eaf59d67f442d8858
The usbcom's device was being released too early in the close sequence.
Note that this fixes a null pointer panic but we still get the
following warning: 'ucom: Warning: cdevsw_remove() called while 1 device
refs still exist! (major 138)'

Submitted-by: YONETANI Tomokazu <qhwt+dragonfly-bugs@les.ath.cx>
sys/dev/usbmisc/ucom/ucom.c