diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-06-13 19:59:02 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-06-13 19:59:02 +0000 |
commit | e28c5b0a67d693de4d57950d1d2347faa231319f (patch) | |
tree | bd298f6245ff6fa0394f56262b66339c4e2b46ec | |
parent | 5c3d12a2ff33ef0461a3cfd51ecb8c91ab7f316a (diff) |
start/size might have ben used uninitialized in case
pcibios was not compiled in and cardbus needed an mem
allocation.
we were away w/ this before because in most configurations
cadbus require pcibios configured into the kernel.
dale found it.
-rw-r--r-- | sys/arch/i386/i386/rbus_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/rbus_machdep.c b/sys/arch/i386/i386/rbus_machdep.c index 9fb45d69532..40a79dd1f5a 100644 --- a/sys/arch/i386/i386/rbus_machdep.c +++ b/sys/arch/i386/i386/rbus_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rbus_machdep.c,v 1.13 2001/11/06 01:43:48 art Exp $ */ +/* $OpenBSD: rbus_machdep.c,v 1.14 2002/06/13 19:59:01 mickey Exp $ */ /* $NetBSD: rbus_machdep.c,v 1.2 1999/10/15 06:43:06 haya Exp $ */ /* @@ -133,9 +133,9 @@ rbus_pccbb_parent_mem(pa) bus_size_t size; struct extent *ex; -#if NPCIBIOS > 0 size = RBUS_MEM_SIZE; start = RBUS_MEM_START; +#if NPCIBIOS > 0 if ((ex = pciaddr_search(PCIADDR_SEARCH_MEM, &start, size)) == NULL) #endif { |