aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-02-23 08:51:00 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-02-24 11:59:04 -0500
commitb94cfaf6685d691dc3fab023cf32f65e9b7be09c (patch)
tree89770f0bfa2bc81f928627648afa2a8bd0283afe /mm
parent918e556ec214ed2f584e4cac56d7b29e4bb6bf27 (diff)
NOMMU: Don't need to clear vm_mm when deleting a VMA
Don't clear vm_mm in a deleted VMA as it's unnecessary and might conceivably break the filesystem or driver VMA close routine. Reported-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Al Viro <viro@zeniv.linux.org.uk> cc: stable@vger.kernel.org Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/nommu.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/nommu.c b/mm/nommu.c
index ee7e57ebef6a..f59e170fceb4 100644
--- a/mm/nommu.c
+++ b/mm/nommu.c
@@ -779,8 +779,6 @@ static void delete_vma_from_mm(struct vm_area_struct *vma)
779 779
780 if (vma->vm_next) 780 if (vma->vm_next)
781 vma->vm_next->vm_prev = vma->vm_prev; 781 vma->vm_next->vm_prev = vma->vm_prev;
782
783 vma->vm_mm = NULL;
784} 782}
785 783
786/* 784/*