Correct bounds check in lapic_create().
Submitted by: "Ted Unangst" tedu at coverity.com
This commit is contained in:
parent
8bab8842ff
commit
4113967125
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user