diff options
author | Borislav Petkov <[email protected]> | 2019-12-31 17:15:35 +0100 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2019-12-31 17:29:29 +0100 |
commit | 36209766cede1fe9d39f3d3418d93bbf71ad21c4 (patch) | |
tree | 0438234fd552620e0be2e638509422021034a3ce /net/unix/af_unix.c | |
parent | 2f004eea0fc8f86b45dfc2007add2d4986de8d02 (diff) |
x86/traps: Cleanup do_general_protection()
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: Borislav Petkov <[email protected]>
Cc: Jann Horn <[email protected]>
Cc: [email protected]
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions