From: Randy Dunlap <[email protected]>

Fix unmatched parenthesis and build error for F00F bug:

../arch/x86/kernel/idt.c: In function 'idt_is_f00f_address':
../arch/x86/kernel/idt.c:177:43: error: expected ';' before ')' token
  return (address - idt_descr.address) >> 3) == 6;
                                           ^
../arch/x86/kernel/idt.c:177:43: error: expected statement before ')' token
../arch/x86/kernel/idt.c:177:45: error: expected expression before '==' token
  return (address - idt_descr.address) >> 3) == 6;
                                             ^~

Signed-off-by: Randy Dunlap <[email protected]>
---
 arch/x86/kernel/idt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-next-20200602.orig/arch/x86/kernel/idt.c
+++ linux-next-20200602/arch/x86/kernel/idt.c
@@ -174,7 +174,7 @@ void load_current_idt(void)
 #ifdef CONFIG_X86_F00F_BUG
 bool idt_is_f00f_address(unsigned long address)
 {
-       return (address - idt_descr.address) >> 3) == 6;
+       return ((address - idt_descr.address) >> 3) == 6;
 }
 #endif
 

Reply via email to