• Borislav Petkov's avatar
    x86/traps: Cleanup do_general_protection() · 36209766
    Borislav Petkov authored
    Hoist the user_mode() case up because it is less code and can be dealt
    with up-front like the other special cases UMIP and vm86.
    
    This saves an indentation level for the kernel-mode #GP case and allows
    to "unfold" the code more so that it is more readable.
    
    No functional changes.
    Signed-off-by: default avatarBorislav Petkov <bp@suse.de>
    Cc: Jann Horn <jannh@google.com>
    Cc: x86@kernel.org
    36209766
traps.c 29.4 KB