diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ftrace.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 1c2056a1a68b..bdb6ee6bc3b9 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h @@ -270,7 +270,7 @@ ftrace_regs_get_kernel_stack_nth(struct ftrace_regs *fregs, unsigned int nth) stackp = (unsigned long *)ftrace_regs_get_stack_pointer(fregs); if (((unsigned long)(stackp + nth) & ~(THREAD_SIZE - 1)) == ((unsigned long)stackp & ~(THREAD_SIZE - 1))) - return *(stackp + nth); + return READ_ONCE_NOCHECK(*(stackp + nth)); return 0; } |
