lkml.org 
[lkml]   [2020]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] x86: F00F: fix parenthesis in idt.c
Date
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(-)

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

\
 
 \ /
  Last update: 2020-06-02 16:31    [W:0.020 / U:0.112 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site