Merge branch 'x86/vdso' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip...
[firefly-linux-kernel-4.4.55.git] / fs / proc / task_mmu.c
index 2101ce46a5d2b7c07f61acfa5d3bacaf157ed7bd..48cbe4c0b2a53279e977cc48d29c248459dc52f7 100644 (file)
@@ -300,6 +300,12 @@ show_map_vma(struct seq_file *m, struct vm_area_struct *vma, int is_pid)
                goto done;
        }
 
+       if (vma->vm_ops && vma->vm_ops->name) {
+               name = vma->vm_ops->name(vma);
+               if (name)
+                       goto done;
+       }
+
        name = arch_vma_name(vma);
        if (!name) {
                pid_t tid;