vserver 2.0 rc7
[linux-2.6.git] / arch / mips / math-emu / dsemul.c
index 6a767fe..aa989c2 100644 (file)
@@ -95,7 +95,7 @@ int mips_dsemul(struct pt_regs *regs, mips_instruction ir, gpreg_t cpc)
        fr = (struct emuframe *) dsemul_insns;
 
        /* Verify that the stack pointer is not competely insane */
-       if (unlikely(verify_area(VERIFY_WRITE, fr, sizeof(struct emuframe))))
+       if (unlikely(!access_ok(VERIFY_WRITE, fr, sizeof(struct emuframe))))
                return SIGBUS;
 
        err = __put_user(ir, &fr->emul);
@@ -128,7 +128,7 @@ int do_dsemulret(struct pt_regs *xcp)
         * If we can't even access the area, something is very wrong, but we'll
         * leave that to the default handling
         */
-       if (verify_area(VERIFY_READ, fr, sizeof(struct emuframe)))
+       if (!access_ok(VERIFY_READ, fr, sizeof(struct emuframe)))
                return 0;
 
        /*
@@ -142,7 +142,6 @@ int do_dsemulret(struct pt_regs *xcp)
 
        if (unlikely(err || (insn != BADINST) || (cookie != BD_COOKIE))) {
                fpuemuprivate.stats.errors++;
-
                return 0;
        }