--- ./mm/mremap.c.mmacct 2005-05-10 16:10:40.000000000 +0400 +++ ./mm/mremap.c 2005-05-10 18:12:13.000000000 +0400 @@ -213,6 +213,7 @@ static unsigned long move_vma(struct vm_ old_len = new_len; old_addr = new_addr; new_addr = -ENOMEM; + new_len = 0; } /* Conceal VM_ACCOUNT so old reservation is not undone */