Fix bug that caused crash when root device was specified as 'ra0*'.

This commit is contained in:
ragge 1997-02-12 19:27:08 +00:00
parent 9efff168a1
commit b2d40fd746
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_subr.c,v 1.20 1997/02/01 02:28:48 cgd Exp $ */
/* $NetBSD: kern_subr.c,v 1.21 1997/02/12 19:27:08 ragge Exp $ */
/*
* Copyright (c) 1997 Jason R. Thorpe. All rights reserved.
@ -455,6 +455,7 @@ setroot(bootdv, bootpartition, nam2blk)
dv = getdisk(buf, len, 1, nam2blk, &nrootdev);
if (dv != NULL) {
rootdv = dv;
swapdv = dv;
nswapdev = nrootdev;
goto gotswap;
}