perf symbol: Look for ImageBase in PE file to compute .text offset
[linux-2.6-microblaze.git] / mm / mremap.c
index 5989d39..badfe17 100644 (file)
@@ -686,7 +686,7 @@ static unsigned long move_vma(struct vm_area_struct *vma,
        if (do_munmap(mm, old_addr, old_len, uf_unmap) < 0) {
                /* OOM: unable to split vma, just get accounts right */
                if (vm_flags & VM_ACCOUNT && !(flags & MREMAP_DONTUNMAP))
-                       vm_acct_memory(new_len >> PAGE_SHIFT);
+                       vm_acct_memory(old_len >> PAGE_SHIFT);
                excess = 0;
        }