projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
918e556
)
NOMMU: Don't need to clear vm_mm when deleting a VMA
author
David Howells
<dhowells@redhat.com>
Thu, 23 Feb 2012 13:51:00 +0000
(13:51 +0000)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Fri, 24 Feb 2012 16:59:04 +0000
(08:59 -0800)
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>
mm/nommu.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/nommu.c
b/mm/nommu.c
index ee7e57ebef6af70b9143b7e404994ae5b3d58427..f59e170fceb4e01046a339d8878f5030dea8a4f9 100644
(file)
--- a/
mm/nommu.c
+++ b/
mm/nommu.c
@@
-779,8
+779,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;
}
/*