diff options
-rw-r--r-- | mm/mmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -829,7 +829,7 @@ again: remove_next = 1 + (end > next->vm_end); | |||
829 | if (next->anon_vma) | 829 | if (next->anon_vma) |
830 | anon_vma_merge(vma, next); | 830 | anon_vma_merge(vma, next); |
831 | mm->map_count--; | 831 | mm->map_count--; |
832 | mpol_put(vma_policy(next)); | 832 | vma_set_policy(vma, vma_policy(next)); |
833 | kmem_cache_free(vm_area_cachep, next); | 833 | kmem_cache_free(vm_area_cachep, next); |
834 | /* | 834 | /* |
835 | * In mprotect's case 6 (see comments on vma_merge), | 835 | * In mprotect's case 6 (see comments on vma_merge), |