Date: Sat, 23 Jun 2007 18:30:08 GMT From: "M. Warner Losh" <imp@bsdimp.com> To: freebsd-usb@FreeBSD.org Subject: Re: usb/113964: [patch] ucom(4): kernel panic when dropping a connection Message-ID: <200706231830.l5NIU8Et090329@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR usb/113964; it has been noted by GNATS.
From: "M. Warner Losh" <imp@bsdimp.com>
To: kazuaki@aliceblue.jp
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: usb/113964: [patch] ucom(4): kernel panic when dropping a
connection
Date: Sat, 23 Jun 2007 12:25:20 -0600 (MDT)
In message: <200706231136.l5NBa61H001748@eyes.aliceblue.jp>
Kazuaki ODA <kazuaki@aliceblue.jp> writes:
: I don't know the proper fix but the following patch is workaround for
: me.
:
: --- ucom.c.patch begins here ---
: --- sys/dev/usb/ucom.c.orig 2007-06-22 23:45:37.000000000 +0900
: +++ sys/dev/usb/ucom.c 2007-06-23 17:47:18.000000000 +0900
: @@ -532,6 +532,9 @@
: if (sc->sc_dying)
: return;
:
: + if (sc->sc_oxfer == NULL)
: + return;
: +
: s = spltty();
:
: if (tp->t_state & TS_TBLOCK) {
: --- ucom.c.patch ends here ---
This is a good workaround. However, why does the tty->t_oproc get
called after the tty->t_close routine which sets sc->sc_oxfer to NULL?
Warner
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200706231830.l5NIU8Et090329>
