summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorpst <pst@FreeBSD.org>1996-02-08 06:30:31 +0000
committerpst <pst@FreeBSD.org>1996-02-08 06:30:31 +0000
commit48877b468a7fda6aca20cbe144c369bca028a934 (patch)
treedbd32f6af50dd4392b4ead8a939303acbf0d77b2 /sys/i386
parent67857c57079854ce012108b493635b5aa4f345a6 (diff)
downloadFreeBSD-src-48877b468a7fda6aca20cbe144c369bca028a934.zip
FreeBSD-src-48877b468a7fda6aca20cbe144c369bca028a934.tar.gz
Close kern/627 - panic if syscons not attached
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/isa/syscons.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/i386/isa/syscons.c b/sys/i386/isa/syscons.c
index d4eb364..fabeddf 100644
--- a/sys/i386/isa/syscons.c
+++ b/sys/i386/isa/syscons.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: syscons.c,v 1.139 1996/01/04 21:11:43 wollman Exp $
+ * $Id: syscons.c,v 1.140 1996/02/05 14:08:39 ache Exp $
*/
#include "sc.h"
@@ -378,6 +378,8 @@ struct tty
{
int unit = minor(dev);
+ if (!init_done)
+ return(NULL);
if (unit > MAXCONS || unit < 0)
return(NULL);
if (unit == MAXCONS)
OpenPOWER on IntegriCloud