Subject: Re: [NetBSD-i386] illegal index into pc_tty in pccons.c
To: None <netbsd-bugs@sun-lamp.cs.berkeley.edu, vdlinden@fwi.uva.nl>
From: None <mycroft@gnu.ai.mit.edu>
List: netbsd-bugs
Date: 08/17/1994 15:16:32
Your proposed patch isn't quite right.  A better way to fix it is:

===================================================================
RCS file: /b/source/CVS/src/sys/arch/i386/isa/pccons.c,v
retrieving revision 1.65
diff -r1.65 pccons.c
431c431
<       if (unit >= pccd.cd_ndevs)
---
>       if (unit >= pccd.cd_ndevs || !pccd.cd_devs[unit])

which I've put in the tree.


------------------------------------------------------------------------------