Skip to content

Commit

Permalink
NOMMU: Don't need to clear vm_mm when deleting a VMA
Browse files Browse the repository at this point in the history
commit b94cfaf 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>
  • Loading branch information
dhowells authored and gregkh committed Mar 12, 2012
1 parent 3516a8a commit ce6e3de
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mm/nommu.c
Expand Up @@ -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;
}

/*
Expand Down

0 comments on commit ce6e3de

Please sign in to comment.