From: David Howells Date: Thu, 23 Feb 2012 13:51:00 +0000 (+0000) Subject: NOMMU: Don't need to clear vm_mm when deleting a VMA X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b94cfaf6685d691dc3fab023cf32f65e9b7be09c;p=~shefty%2Frdma-dev.git 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 Signed-off-by: David Howells Acked-by: Al Viro cc: stable@vger.kernel.org Signed-off-by: Linus Torvalds --- diff --git a/mm/nommu.c b/mm/nommu.c index ee7e57ebef6..f59e170fceb 100644 --- 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; } /*