diff options
author | imp <imp@FreeBSD.org> | 2004-04-07 05:00:01 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-04-07 05:00:01 +0000 |
commit | ebf059d1df0151481200e07a497baa76a1d4c620 (patch) | |
tree | b2beacbd07741f5047235203a9905f6f52963bc2 /sys/dev/sio | |
parent | 9e1925f5605eb84767aaedbc35ab643a8f9f90a5 (diff) | |
download | FreeBSD-src-ebf059d1df0151481200e07a497baa76a1d4c620.zip FreeBSD-src-ebf059d1df0151481200e07a497baa76a1d4c620.tar.gz |
Remove advertising clause from University of California Regent's
license, per letter dated July 22, 1999 and email from Peter Wemm,
Alan Cox and Robert Watson.
Approved by: core, peter, alc, rwatson
Diffstat (limited to 'sys/dev/sio')
-rw-r--r-- | sys/dev/sio/sio.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/sys/dev/sio/sio.c b/sys/dev/sio/sio.c index 6415fb5..9bf4dfa 100644 --- a/sys/dev/sio/sio.c +++ b/sys/dev/sio/sio.c @@ -1792,9 +1792,20 @@ siointr1(com) } } line_status = inb(com->line_status_port); - + if (line_status == 0xff) { + printf("sio%d: spouting nonsense -- disabled.\n", + com->unit); + com->gone = 1; + break; + } /* input event? (check first to help avoid overruns) */ while (line_status & LSR_RCV_MASK) { + if (line_status == 0xff) { + printf("sio%d: linestats bogus -- disabled.\n", + com->unit); + com->gone = 1; + return; + } /* break/unnattached error bits or real input? */ if (!(line_status & LSR_RXRDY)) recv_data = 0; |