From owner-cvs-all Sat May 26 17:57:30 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3354437B423; Sat, 26 May 2001 17:57:27 -0700 (PDT) (envelope-from dd@FreeBSD.org) Received: (from dd@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f4R0vRh23932; Sat, 26 May 2001 17:57:27 -0700 (PDT) (envelope-from dd) Message-Id: <200105270057.f4R0vRh23932@freefall.freebsd.org> From: Dima Dorfman Date: Sat, 26 May 2001 17:57:27 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/syscons syscons.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG dd 2001/05/26 17:57:26 PDT Modified files: sys/dev/syscons syscons.c Log: In the VIRTUAL_TTY macro, add a check to make sure that the result of SC_DEV isn't NULL; if it is, evaluate to NULL and don't dereference NULL. Callers of VIRTUAL_TTY must already check for the result being NULL since si_tty can be NULL, so this should be safe. This fixes a panic when trying to switch to a different vty in an environment such as userconfig (-c option to the kernel). PR: 26508 Revision Changes Path 1.360 +3 -2 src/sys/dev/syscons/syscons.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message