Merge branch 'kvm-updates/2.6.39' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[pandora-kernel.git] / arch / sparc / mm / fault_32.c
index 5b836f5..b10ac4d 100644 (file)
@@ -240,11 +240,10 @@ asmlinkage void do_sparc_fault(struct pt_regs *regs, int text_fault, int write,
         * only copy the information from the master page table,
         * nothing more.
         */
+       code = SEGV_MAPERR;
        if (!ARCH_SUN4C && address >= TASK_SIZE)
                goto vmalloc_fault;
 
-       code = SEGV_MAPERR;
-
        /*
         * If we're in an interrupt or have no user
         * context, we must not take the fault..