[-next] x86: F00F: fix parenthesis in idt.c
diff mbox series

Message ID 3df7fc9b-5cba-666a-be94-9c104ad117ef@infradead.org
State New
Headers show
Series
  • [-next] x86: F00F: fix parenthesis in idt.c
Related show

Commit Message

Randy Dunlap June 2, 2020, 2:30 p.m. UTC
From: Randy Dunlap <rdunlap@infradead.org>

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 <rdunlap@infradead.org>
---
 arch/x86/kernel/idt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

--- 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