static void vma_delete(struct mm_struct *mm)

{

    struct vm_area_struct *vma;



    while ((vma = vma_first(mm)) != NULL) {

        TAILQ_REMOVE(&mm->mm_mmap, vma, vma_link);

        qemu_free(vma);

    }

    qemu_free(mm);

}

static void vma_delete(struct mm_struct *mm)

{

    struct vm_area_struct *vma;



    while ((vma = vma_first(mm)) != NULL) {

        TAILQ_REMOVE(&mm->mm_mmap, vma, vma_link);

        qemu_free(vma);

    }

    qemu_free(mm);

}

static void FUNC_0(struct mm_struct *VAR_0)

{

    struct vm_area_struct *VAR_1;



    while ((VAR_1 = vma_first(VAR_0)) != NULL) {

        TAILQ_REMOVE(&VAR_0->mm_mmap, VAR_1, vma_link);

        qemu_free(VAR_1);

    }

    qemu_free(VAR_0);

}

static void FUNC_0(struct mm_struct *VAR_0)
{ struct vm_area_struct *VAR_1; while ((VAR_1 = vma_first(VAR_0)) != NULL) { TAILQ_REMOVE(&VAR_0->mm_mmap, VAR_1, vma_link); qemu_free(VAR_1); } qemu_free(VAR_0); }