summaryrefslogtreecommitdiffstats
path: root/arch/x86/um/ldt.c
diff options
context:
space:
mode:
authorAndy Lutomirski <luto@kernel.org>2017-11-02 08:59:17 +0100
committerIngo Molnar <mingo@kernel.org>2017-11-02 11:04:49 +0100
commit3383642c2f9d4f5b4fa37436db4a109a1a10018c (patch)
tree8da86c9ac666a7595f0aeb0e1d18f0934a40dc3d /arch/x86/um/ldt.c
parentx86/entry/64: Remove thread_struct::sp0 (diff)
downloadlinux-3383642c2f9d4f5b4fa37436db4a109a1a10018c.tar.xz
linux-3383642c2f9d4f5b4fa37436db4a109a1a10018c.zip
x86/traps: Use a new on_thread_stack() helper to clean up an assertion
Let's keep the stack-related logic together rather than open-coding a comparison in an assertion in the traps code. Signed-off-by: Andy Lutomirski <luto@kernel.org> Reviewed-by: Borislav Petkov <bp@suse.de> Cc: Borislav Petkov <bpetkov@suse.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Dave Hansen <dave.hansen@intel.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Link: http://lkml.kernel.org/r/856b15bee1f55017b8f79d3758b0d51c48a08cf8.1509609304.git.luto@kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'arch/x86/um/ldt.c')
0 files changed, 0 insertions, 0 deletions