From ae404e3427eed77c22e0c4df821ff9d978d9ac93 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 27 Jun 2004 11:29:54 +0000 Subject: [PATCH] Guard against us having no tty pointer. --- sys/dev/sio/sio.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 1dbf3c811f6c..0ecdef798cc5 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -1875,7 +1875,8 @@ siointr1(com) recv_data = 0; } ++com->bytes_in; - if (com->tp->t_hotchar != 0 && recv_data == com->tp->t_hotchar) + if (com->tp != NULL && + com->tp->t_hotchar != 0 && recv_data == com->tp->t_hotchar) swi_sched(sio_fast_ih, 0); ioptr = com->iptr; if (ioptr >= com->ibufend)