diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-10-21 20:49:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-10-21 20:49:40 +0000 |
commit | 03d0daff730ff0f198359553449041bbf1b14e95 (patch) | |
tree | a2780db77c21aa313ab17ffb0e07dcd5c01ec6c8 /sys/dev/acpi | |
parent | a92b1b81db135ea9ae3737eb21c4018cca5f35e1 (diff) |
Set mp_nbusses such that the newly added bounds checks on i386 and amd64
don't fail unconditionally.
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r-- | sys/dev/acpi/acpimadt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/acpi/acpimadt.c b/sys/dev/acpi/acpimadt.c index 23d8d32c1c5..8f435c624b2 100644 --- a/sys/dev/acpi/acpimadt.c +++ b/sys/dev/acpi/acpimadt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: acpimadt.c,v 1.24 2011/03/06 22:40:05 deraadt Exp $ */ +/* $OpenBSD: acpimadt.c,v 1.25 2011/10/21 20:49:39 kettenis Exp $ */ /* * Copyright (c) 2006 Mark Kettenis <kettenis@openbsd.org> * @@ -212,6 +212,7 @@ acpimadt_attach(struct device *parent, struct device *self, void *aux) return; mp_busses = acpimadt_busses; + mp_nbusses = nitems(acpimadt_busses); mp_isa_bus = &acpimadt_isa_bus; lapic_boot_init(madt->local_apic_address); |