PERFORCE change 94263 for review

Marcel Moolenaar marcel at FreeBSD.org
Wed Mar 29 22:05:56 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=94263

Change 94263 by marcel at 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);
 }


More information about the p4-projects mailing list