diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-11-01 17:15:09 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-11-01 17:15:09 +0000 |
commit | 6474f94269fbf3b319de5b9b6bfd8c330ea8dcd9 (patch) | |
tree | e4011c0b7e4d1f4c24303c1825ffdd5a559dfbdf /sys | |
parent | f5692d57b241d08a5f698764e56479a48bbee6b5 (diff) |
setup_buffers: If the allocation of saved_pgs failed 'left' would be
uninitialized and we wouldn't know how much memory to allocate for buffers.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/i386/machdep.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c index d559be47fd1..2938460ab21 100644 --- a/sys/arch/i386/i386/machdep.c +++ b/sys/arch/i386/i386/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.116 1999/10/26 18:16:48 mickey Exp $ */ +/* $OpenBSD: machdep.c,v 1.117 1999/11/01 17:15:08 art Exp $ */ /* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */ /*- @@ -582,6 +582,8 @@ setup_buffers(maxaddr) * memory above 16MB first. */ + left = bufpages; + /* * First, save ISA DMA bounce buffer area so we won't lose that * capability. |