Merged from sys/dev/sio/sio.c revision 1.444.

This commit is contained in:
Yoshihiro Takahashi 2004-06-28 13:28:20 +00:00
parent 25a15c6e3a
commit 3fdb25139d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131237
2 changed files with 4 additions and 2 deletions

View file

@ -2754,7 +2754,8 @@ status_read:;
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)

View file

@ -2754,7 +2754,8 @@ status_read:;
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)