drivers: remove struct module * setting from struct class
[linux-2.6-microblaze.git] / mm / mprotect.c
index 1d4843c..231929f 100644 (file)
@@ -832,6 +832,7 @@ static int do_mprotect_pkey(unsigned long start, size_t len,
                if (error)
                        break;
 
+               tmp = vma_iter_end(&vmi);
                nstart = tmp;
                prot = reqprot;
        }