diff options
Diffstat (limited to 'arch/x86/kernel/dumpstack.c')
-rw-r--r-- | arch/x86/kernel/dumpstack.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/dumpstack.c b/arch/x86/kernel/dumpstack.c index cf3df1d8d039..ab3b65639a3e 100644 --- a/arch/x86/kernel/dumpstack.c +++ b/arch/x86/kernel/dumpstack.c | |||
@@ -278,7 +278,7 @@ int __die(const char *str, struct pt_regs *regs, long err) | |||
278 | print_modules(); | 278 | print_modules(); |
279 | show_regs(regs); | 279 | show_regs(regs); |
280 | #ifdef CONFIG_X86_32 | 280 | #ifdef CONFIG_X86_32 |
281 | if (user_mode_vm(regs)) { | 281 | if (user_mode(regs)) { |
282 | sp = regs->sp; | 282 | sp = regs->sp; |
283 | ss = regs->ss & 0xffff; | 283 | ss = regs->ss & 0xffff; |
284 | } else { | 284 | } else { |
@@ -307,7 +307,7 @@ void die(const char *str, struct pt_regs *regs, long err) | |||
307 | unsigned long flags = oops_begin(); | 307 | unsigned long flags = oops_begin(); |
308 | int sig = SIGSEGV; | 308 | int sig = SIGSEGV; |
309 | 309 | ||
310 | if (!user_mode_vm(regs)) | 310 | if (!user_mode(regs)) |
311 | report_bug(regs->ip, regs); | 311 | report_bug(regs->ip, regs); |
312 | 312 | ||
313 | if (__die(str, regs, err)) | 313 | if (__die(str, regs, err)) |