~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/mn10300/kernel/traps.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <linux/irq.h>
29
29
#include <asm/processor.h>
30
30
#include <asm/system.h>
31
 
#include <asm/uaccess.h>
 
31
#include <linux/uaccess.h>
32
32
#include <asm/io.h>
33
33
#include <asm/atomic.h>
34
34
#include <asm/smp.h>
156
156
 
157
157
        case EXCEP_TRAP:
158
158
        case EXCEP_UNIMPINS:
159
 
                if (get_user(opcode, (uint8_t __user *)regs->pc) != 0)
 
159
                if (probe_kernel_read(&opcode, (u8 *)regs->pc, 1) < 0)
160
160
                        break;
161
161
                if (opcode == 0xff) {
162
162
                        if (notify_die(DIE_BREAKPOINT, str, regs, code, 0, 0))