aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-04-12 21:30:04 +0000
committerMark Johnston <markj@FreeBSD.org>2022-04-18 16:19:57 +0000
commit60c952d4724974b877b2ec02784e22b74dab8809 (patch)
tree0e6a5f16eb34467e87664b0410a08bd3b4f8343a
parentd15267582d6ef6af239e59f21b9e8c44de3daffa (diff)
downloadsrc-60c952d4724974b877b2ec02784e22b74dab8809.tar.gz
src-60c952d4724974b877b2ec02784e22b74dab8809.zip
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 Sponsored by: The FreeBSD Foundation (cherry picked from commit d769609620931a62ebacbd4f1f5fd048c7e3d7c0)
-rw-r--r--sys/kern/tty_inq.c1
1 files changed, 0 insertions, 1 deletions
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);
}
}