diff options
Diffstat (limited to 'arch/x86_64')
-rw-r--r-- | arch/x86_64/kernel/traps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/kernel/traps.c b/arch/x86_64/kernel/traps.c index 08325b1f871d..fcee07db3b68 100644 --- a/arch/x86_64/kernel/traps.c +++ b/arch/x86_64/kernel/traps.c | |||
@@ -345,7 +345,7 @@ void handle_BUG(struct pt_regs *regs) | |||
345 | 345 | ||
346 | if (user_mode(regs)) | 346 | if (user_mode(regs)) |
347 | return; | 347 | return; |
348 | if (__copy_from_user(&f, (struct bug_frame *) regs->rip, | 348 | if (__copy_from_user(&f, (const void __user *) regs->rip, |
349 | sizeof(struct bug_frame))) | 349 | sizeof(struct bug_frame))) |
350 | return; | 350 | return; |
351 | if (f.filename >= 0 || | 351 | if (f.filename >= 0 || |