Date: Wed, 29 Mar 2006 22:05:53 GMT From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94263 for review Message-ID: <200603292205.k2TM5rAr077619@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94263 Change 94263 by marcel@marcel_nfs on 2006/03/29 22:05:32 In uart_tty_open(), fail if there's no softc or sc_leaving has been set in the softc. Affected files ... .. //depot/projects/uart/dev/uart/uart_tty.c#27 edit Differences ... ==== //depot/projects/uart/dev/uart/uart_tty.c#27 (text+ko) ==== @@ -137,6 +137,10 @@ struct uart_softc *sc; sc = tp->t_sc; + + if (sc == NULL || sc->sc_leaving) + return (ENXIO); + sc->sc_opened = 1; return (0); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603292205.k2TM5rAr077619>