diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2011-10-12 06:40:21 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2011-10-12 06:40:21 +0000 |
| commit | 4276c712e20f34641222a0d8427dbbcb171b97ae (patch) | |
| tree | b289cdb3b79b6d6812e323116bd46c71476e4914 /sys/dev/usb | |
| parent | c080c724814676bac643113835b1a3848400f8e0 (diff) | |
Notes
Diffstat (limited to 'sys/dev/usb')
| -rw-r--r-- | sys/dev/usb/serial/usb_serial.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/serial/usb_serial.c b/sys/dev/usb/serial/usb_serial.c index b0ff3bf17bd8..61885eaa147a 100644 --- a/sys/dev/usb/serial/usb_serial.c +++ b/sys/dev/usb/serial/usb_serial.c @@ -289,6 +289,9 @@ ucom_detach(struct ucom_super_softc *ssc, struct ucom_softc *sc) { uint32_t subunit; + if (ssc->sc_subunits == 0) + return; /* not initialized */ + usb_proc_drain(&ssc->sc_tq); for (subunit = 0; subunit < ssc->sc_subunits; subunit++) { |
