[PATCH 08/13] x86/fault: Don't set thread.cr2, etc before OOPSing

2018-11-19 Thread Andy Lutomirski
The fault handling code sets the cr2, trap_nr, and error_code fields in thread_struct before OOPSing. No one reads those fields during an OOPS, so remove the code to set them. Signed-off-by: Andy Lutomirski --- arch/x86/mm/fault.c | 8 1 file changed, 8 deletions(-) diff --git

[PATCH 08/13] x86/fault: Don't set thread.cr2, etc before OOPSing

2018-11-19 Thread Andy Lutomirski
The fault handling code sets the cr2, trap_nr, and error_code fields in thread_struct before OOPSing. No one reads those fields during an OOPS, so remove the code to set them. Signed-off-by: Andy Lutomirski --- arch/x86/mm/fault.c | 8 1 file changed, 8 deletions(-) diff --git