mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
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>
This commit is contained in:
parent
918e556ec2
commit
b94cfaf668
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user