diff options
Diffstat (limited to 'arch/x86/oprofile/backtrace.c')
-rw-r--r-- | arch/x86/oprofile/backtrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/oprofile/backtrace.c b/arch/x86/oprofile/backtrace.c index d6aa6e8315d1..5d04be5efb64 100644 --- a/arch/x86/oprofile/backtrace.c +++ b/arch/x86/oprofile/backtrace.c | |||
@@ -47,7 +47,7 @@ dump_user_backtrace_32(struct stack_frame_ia32 *head) | |||
47 | unsigned long bytes; | 47 | unsigned long bytes; |
48 | 48 | ||
49 | bytes = copy_from_user_nmi(bufhead, head, sizeof(bufhead)); | 49 | bytes = copy_from_user_nmi(bufhead, head, sizeof(bufhead)); |
50 | if (bytes != sizeof(bufhead)) | 50 | if (bytes != 0) |
51 | return NULL; | 51 | return NULL; |
52 | 52 | ||
53 | fp = (struct stack_frame_ia32 *) compat_ptr(bufhead[0].next_frame); | 53 | fp = (struct stack_frame_ia32 *) compat_ptr(bufhead[0].next_frame); |
@@ -93,7 +93,7 @@ static struct stack_frame *dump_user_backtrace(struct stack_frame *head) | |||
93 | unsigned long bytes; | 93 | unsigned long bytes; |
94 | 94 | ||
95 | bytes = copy_from_user_nmi(bufhead, head, sizeof(bufhead)); | 95 | bytes = copy_from_user_nmi(bufhead, head, sizeof(bufhead)); |
96 | if (bytes != sizeof(bufhead)) | 96 | if (bytes != 0) |
97 | return NULL; | 97 | return NULL; |
98 | 98 | ||
99 | oprofile_add_trace(bufhead[0].return_address); | 99 | oprofile_add_trace(bufhead[0].return_address); |