base.c (0dfeada90989833d0144b4df25d2b9ce3746624f) | base.c (05f564849d49499ced97913a0914b5950577d07d) |
---|---|
1/* 2 * linux/fs/proc/base.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * 6 * proc base directory handling functions 7 * 8 * 1999, Al Viro. Rewritten. Now it covers the whole per-process part. --- 1863 unchanged lines hidden (view full) --- 1872 if (!mm) 1873 goto out_put_task; 1874 1875 down_read(&mm->mmap_sem); 1876 vma = find_exact_vma(mm, vm_start, vm_end); 1877 if (!vma) 1878 goto out_no_vma; 1879 | 1/* 2 * linux/fs/proc/base.c 3 * 4 * Copyright (C) 1991, 1992 Linus Torvalds 5 * 6 * proc base directory handling functions 7 * 8 * 1999, Al Viro. Rewritten. Now it covers the whole per-process part. --- 1863 unchanged lines hidden (view full) --- 1872 if (!mm) 1873 goto out_put_task; 1874 1875 down_read(&mm->mmap_sem); 1876 vma = find_exact_vma(mm, vm_start, vm_end); 1877 if (!vma) 1878 goto out_no_vma; 1879 |
1880 result = proc_map_files_instantiate(dir, dentry, task, 1881 (void *)(unsigned long)vma->vm_file->f_mode); | 1880 if (vma->vm_file) 1881 result = proc_map_files_instantiate(dir, dentry, task, 1882 (void *)(unsigned long)vma->vm_file->f_mode); |
1882 1883out_no_vma: 1884 up_read(&mm->mmap_sem); 1885 mmput(mm); 1886out_put_task: 1887 put_task_struct(task); 1888out: 1889 return result; --- 1463 unchanged lines hidden --- | 1883 1884out_no_vma: 1885 up_read(&mm->mmap_sem); 1886 mmput(mm); 1887out_put_task: 1888 put_task_struct(task); 1889out: 1890 return result; --- 1463 unchanged lines hidden --- |