Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2001 17:57:27 -0700 (PDT)
From:      Dima Dorfman <dd@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/syscons syscons.c
Message-ID:  <200105270057.f4R0vRh23932@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105270057.f4R0vRh23932>