]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-augment-vma-rbtree-with-rb_subtree_gap-fix
authorMichel Lespinasse <walken@google.com>
Thu, 29 Nov 2012 03:17:13 +0000 (14:17 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:03 +0000 (16:23 +1100)
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/mmap.c

index 07617c237215983c86c8bd0868ec65ccfec580ec..e8cd2b7deb667880aa04d028d7538d53e7a2b96a 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1914,7 +1914,7 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
                                if (vma->vm_next)
                                        vma_gap_update(vma->vm_next);
                                else
-                                       mm->highest_vm_end = address;
+                                       vma->vm_mm->highest_vm_end = address;
                                perf_event_mmap(vma);
                        }
                }