diff options
author | David Howells <dhowells@redhat.com> | 2012-02-23 13:51:00 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-03-12 10:32:56 -0700 |
commit | 0f062a5c0e3b23803c1f5b927ef5e8ba5ec52ff1 (patch) | |
tree | f227cf2b25dcef1057891832626e6135778303f0 | |
parent | 509c46f3d4fe2c6043ed2a00856ff4f4dce0f13a (diff) | |
download | linux-stable-0f062a5c0e3b23803c1f5b927ef5e8ba5ec52ff1.tar.gz linux-stable-0f062a5c0e3b23803c1f5b927ef5e8ba5ec52ff1.tar.bz2 linux-stable-0f062a5c0e3b23803c1f5b927ef5e8ba5ec52ff1.zip |
NOMMU: Don't need to clear vm_mm when deleting a VMA
commit b94cfaf6685d691dc3fab023cf32f65e9b7be09c upstream.
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | mm/nommu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/nommu.c b/mm/nommu.c index 839775875e7f..5ff9b35883ee 100644 --- a/mm/nommu.c +++ b/mm/nommu.c @@ -780,8 +780,6 @@ static void delete_vma_from_mm(struct vm_area_struct *vma) if (vma->vm_next) vma->vm_next->vm_prev = vma->vm_prev; - - vma->vm_mm = NULL; } /* |