Skip to content
This repository
Browse code

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>
  • Loading branch information...
commit b94cfaf6685d691dc3fab023cf32f65e9b7be09c 1 parent 918e556
David Howells authored torvalds committed

Showing 1 changed file with 0 additions and 2 deletions. Show diff stats Hide diff stats

  1. +0 2  mm/nommu.c
2  mm/nommu.c
@@ -779,8 +779,6 @@ static void delete_vma_from_mm(struct vm_area_struct *vma)
779 779
780 780 if (vma->vm_next)
781 781 vma->vm_next->vm_prev = vma->vm_prev;
782   -
783   - vma->vm_mm = NULL;
784 782 }
785 783
786 784 /*

0 comments on commit b94cfaf

Please sign in to comment.
Something went wrong with that request. Please try again.