projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.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
|
history
diff --git
a/mm/nommu.c
b/mm/nommu.c
index
ee7e57e
..
f59e170
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;
}
/*