소스 검색

x86: Fix x86_model test in es7000_apic_is_cluster()

For the x86_model to be greater than 6 or less than 12 is
logically always true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: <stable@kernel.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Roel Kluin 15 년 전
부모
커밋
005155b1f6
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/x86/kernel/apic/es7000_32.c

+ 1 - 1
arch/x86/kernel/apic/es7000_32.c

@@ -167,7 +167,7 @@ static int es7000_apic_is_cluster(void)
 {
 {
 	/* MPENTIUMIII */
 	/* MPENTIUMIII */
 	if (boot_cpu_data.x86 == 6 &&
 	if (boot_cpu_data.x86 == 6 &&
-	    (boot_cpu_data.x86_model >= 7 || boot_cpu_data.x86_model <= 11))
+	    (boot_cpu_data.x86_model >= 7 && boot_cpu_data.x86_model <= 11))
 		return 1;
 		return 1;
 
 
 	return 0;
 	return 0;