git: d76960962093 - main - tty: Remove an incorrect assertion from ttyinq_line_iterate()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 12 Apr 2022 21:38:12 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d769609620931a62ebacbd4f1f5fd048c7e3d7c0 commit d769609620931a62ebacbd4f1f5fd048c7e3d7c0 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-04-12 21:30:04 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-04-12 21:30:04 +0000 tty: Remove an incorrect assertion from ttyinq_line_iterate() We may legitimately have tib == NULL if we're at the very end of the queue. PR: 215373 Reported by: pho MFC after: 1 week Sponsored by: The FreeBSD Foundation --- sys/kern/tty_inq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/kern/tty_inq.c b/sys/kern/tty_inq.c index bd26211735d2..069da33ab26a 100644 --- a/sys/kern/tty_inq.c +++ b/sys/kern/tty_inq.c @@ -464,7 +464,6 @@ ttyinq_line_iterate(struct ttyinq *ti, /* Last byte iterated - go to the next block. */ if (boff == TTYINQ_DATASIZE - 1) tib = tib->tib_next; - MPASS(tib != NULL); } }