diff options
author | phk <phk@FreeBSD.org> | 2004-06-27 11:29:54 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-06-27 11:29:54 +0000 |
commit | 518c2672d85d7929efa2c946920ebe50eca88fb0 (patch) | |
tree | 0f9967ee46d16783a1e2223f3c1103ab1021bf5e /sys/dev/sio | |
parent | 3a2780ff6eeaaf86c011ff26a9fb82f995961037 (diff) | |
download | FreeBSD-src-518c2672d85d7929efa2c946920ebe50eca88fb0.zip FreeBSD-src-518c2672d85d7929efa2c946920ebe50eca88fb0.tar.gz |
Guard against us having no tty pointer.
Diffstat (limited to 'sys/dev/sio')
-rw-r--r-- | sys/dev/sio/sio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 1dbf3c8..0ecdef7 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) |