Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253170
b: refs/heads/master
c: db1c9df
h: refs/heads/master
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Jun 8, 2011
1 parent 037c9d6 commit 3ba4191
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2e65d1f6eecc176ba1341541b5f41edd7eb4346a
refs/heads/master: db1c9dfa649f9bd8dc11415fbfe5cfe1e24c5b33
4 changes: 2 additions & 2 deletions trunk/arch/mn10300/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <linux/irq.h>
#include <asm/processor.h>
#include <asm/system.h>
#include <asm/uaccess.h>
#include <linux/uaccess.h>
#include <asm/io.h>
#include <asm/atomic.h>
#include <asm/smp.h>
Expand Down Expand Up @@ -156,7 +156,7 @@ int die_if_no_fixup(const char *str, struct pt_regs *regs,

case EXCEP_TRAP:
case EXCEP_UNIMPINS:
if (get_user(opcode, (uint8_t __user *)regs->pc) != 0)
if (probe_kernel_read(&opcode, (u8 *)regs->pc, 1) < 0)
break;
if (opcode == 0xff) {
if (notify_die(DIE_BREAKPOINT, str, regs, code, 0, 0))
Expand Down

0 comments on commit 3ba4191

Please sign in to comment.