Correct bounds check in lapic_create().
Submitted by: "Ted Unangst" tedu at coverity.com
This commit is contained in:
parent
09a23520c0
commit
0c9cb34441
@ -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