diff options
author | jhb <jhb@FreeBSD.org> | 2004-07-14 18:12:15 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2004-07-14 18:12:15 +0000 |
commit | 41139671254218009e1302883b8e8af6e666cc91 (patch) | |
tree | de5901e02419e7afabcc6877459ba8c7a281c382 /sys | |
parent | 8bab8842ffaa13de44e6a82b7a35a1fd37862deb (diff) | |
download | FreeBSD-src-41139671254218009e1302883b8e8af6e666cc91.zip FreeBSD-src-41139671254218009e1302883b8e8af6e666cc91.tar.gz |
Correct bounds check in lapic_create().
Submitted by: "Ted Unangst" tedu at coverity.com
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/i386/local_apic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/local_apic.c b/sys/i386/i386/local_apic.c index afda9791..9c3d97b 100644 --- a/sys/i386/i386/local_apic.c +++ b/sys/i386/i386/local_apic.c @@ -194,7 +194,7 @@ lapic_create(u_int apic_id, int boot_cpu) { int i; - if (apic_id > MAX_APICID) { + if (apic_id >= MAX_APICID) { printf("APIC: Ignoring local APIC with ID %d\n", apic_id); if (boot_cpu) panic("Can't ignore BSP"); |