lkml.org 
[lkml]   [2013]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] x86, acpi: Fix wrong checking condition in acpi_register_lapic().
Date
We wanted to check if the acpi id is out of range. It should be:
if (id >= (MAX_LOCAL_APIC)).

Signed-off-by: Tang Chen <tangchen@cn.fujitsu.com>
---
arch/x86/kernel/acpi/boot.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
index d81a972..2a15ae7 100644
--- a/arch/x86/kernel/acpi/boot.c
+++ b/arch/x86/kernel/acpi/boot.c
@@ -199,7 +199,7 @@ static void __cpuinit acpi_register_lapic(int id, u8 enabled)
{
unsigned int ver = 0;

- if (id >= (MAX_LOCAL_APIC-1)) {
+ if (id >= (MAX_LOCAL_APIC)) {
printk(KERN_INFO PREFIX "skipped apicid that is too big\n");
return;
}
--
1.7.10.1


\
 
 \ /
  Last update: 2013-07-23 04:21    [W:1.790 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site