Correct bounds check in lapic_create().

Submitted by:	"Ted Unangst" tedu at coverity.com
This commit is contained in:
jhb 2004-07-14 18:12:15 +00:00
parent 8bab8842ff
commit 4113967125

View File

@ -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");