From 9346a1597c86ac046922227b49b8b22facb4da66 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 3 Jun 2002 01:28:27 +0000 Subject: 2002-06-03 Marcus Brinkmann * console.c (vcons_release): Fix last change. --- console/console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'console/console.c') diff --git a/console/console.c b/console/console.c index 0f4ca22e..46dfa406 100644 --- a/console/console.c +++ b/console/console.c @@ -248,10 +248,11 @@ vcons_release (vcons_t vcons) if (vcons->prev) vcons->prev->next = vcons->next; + else + vcons->cons->vcons_list = vcons->next; if (vcons->next) vcons->next->prev = vcons->prev; - if (!vcons->prev && !vcons->next) - vcons->cons->vcons_list = NULL; + vcons->cons->vcons_length--; vcons->cons->refcnt--; free (vcons); -- cgit v1.2.3