diff options
author | Borislav Petkov <bp@suse.de> | 2019-12-31 19:15:35 +0300 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2019-12-31 19:29:29 +0300 |
commit | 36209766cede1fe9d39f3d3418d93bbf71ad21c4 (patch) | |
tree | 0438234fd552620e0be2e638509422021034a3ce /tools/lib/bpf/bpf_prog_linfo.c | |
parent | 2f004eea0fc8f86b45dfc2007add2d4986de8d02 (diff) | |
download | linux-36209766cede1fe9d39f3d3418d93bbf71ad21c4.tar.xz |
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 <bp@suse.de>
Cc: Jann Horn <jannh@google.com>
Cc: x86@kernel.org
Diffstat (limited to 'tools/lib/bpf/bpf_prog_linfo.c')
0 files changed, 0 insertions, 0 deletions