aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/syscons
diff options
context:
space:
mode:
authorPaul Traina <pst@FreeBSD.org>1996-02-08 06:30:31 +0000
committerPaul Traina <pst@FreeBSD.org>1996-02-08 06:30:31 +0000
commitab5805011282f7e4c2051c6e6c65942f06adb572 (patch)
treedbd32f6af50dd4392b4ead8a939303acbf0d77b2 /sys/dev/syscons
parent19c8e2e153e92acab7c8be81016239c8858fac81 (diff)
Notes
Diffstat (limited to 'sys/dev/syscons')
-rw-r--r--sys/dev/syscons/syscons.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c
index d4eb364d4adc8..fabeddf58ea9c 100644
--- a/sys/dev/syscons/syscons.c
+++ b/sys/dev/syscons/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.139 1996/01/04 21:11:43 wollman Exp $
+ * $Id: syscons.c,v 1.140 1996/02/05 14:08:39 ache Exp $
*/
#include "sc.h"
@@ -378,6 +378,8 @@ struct tty
{
int unit = minor(dev);
+ if (!init_done)
+ return(NULL);
if (unit > MAXCONS || unit < 0)
return(NULL);
if (unit == MAXCONS)