If the boot device cannot be determined don't return an un-initialized
pointer. Prevents garbage when asking for root device at startup.
This commit is contained in:
parent
0548dfb96c
commit
83cb8b7f0a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.2 2001/05/11 04:53:25 thorpej Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.3 2001/08/08 11:35:12 wdk Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Soren S. Jorvang
|
||||
|
@ -92,5 +92,11 @@ findroot(devpp, partp)
|
|||
struct device **devpp;
|
||||
int *partp;
|
||||
{
|
||||
/*
|
||||
* Default to "not found".
|
||||
*/
|
||||
*devpp = NULL;
|
||||
*partp = 0;
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue