Close kern/627 - panic if syscons not attached

This commit is contained in:
Paul Traina 1996-02-08 06:30:31 +00:00
parent 19c8e2e153
commit ab58050112
3 changed files with 9 additions and 3 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)