lkml.org 
[lkml]   [2012]   [Mar]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[ 31/95] NOMMU: Dont need to clear vm_mm when deleting a VMA
    3.2-stable review patch.  If anyone has any objections, please let me know.

    ------------------

    From: David Howells <dhowells@redhat.com>

    commit b94cfaf6685d691dc3fab023cf32f65e9b7be09c 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>

    ---
    mm/nommu.c | 2 --
    1 file changed, 2 deletions(-)

    --- a/mm/nommu.c
    +++ b/mm/nommu.c
    @@ -779,8 +779,6 @@ static void delete_vma_from_mm(struct vm

    if (vma->vm_next)
    vma->vm_next->vm_prev = vma->vm_prev;
    -
    - vma->vm_mm = NULL;
    }

    /*



    \
     
     \ /
      Last update: 2012-03-09 20:51    [W:0.021 / U:30.560 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site