aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/vmalloc.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 285f0e7d28e7..814ce9122709 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -2578,15 +2578,12 @@ static int s_show(struct seq_file *m, void *p)
2578 struct vmap_area *va = p; 2578 struct vmap_area *va = p;
2579 struct vm_struct *v; 2579 struct vm_struct *v;
2580 2580
2581 if (va->flags & (VM_LAZY_FREE | VM_LAZY_FREEING)) 2581 /*
2582 return 0; 2582 * s_show can encounter race with remove_vm_area, !VM_VM_AREA on
2583 2583 * behalf of vmap area is being tear down or vm_map_ram allocation.
2584 if (!(va->flags & VM_VM_AREA)) { 2584 */
2585 seq_printf(m, "0x%pK-0x%pK %7ld vm_map_ram\n", 2585 if (!(va->flags & VM_VM_AREA))
2586 (void *)va->va_start, (void *)va->va_end,
2587 va->va_end - va->va_start);
2588 return 0; 2586 return 0;
2589 }
2590 2587
2591 v = va->vm; 2588 v = va->vm;
2592 2589