Messages in this thread Patch in this message | | | From | Randy Dunlap <> | Subject | [PATCH -next] x86: F00F: fix parenthesis in idt.c | Date | Tue, 2 Jun 2020 07:30:41 -0700 |
| |
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
| |