CIFS: Fix wrong restart readdir for SMB1
[firefly-linux-kernel-4.4.55.git] / fs / proc / base.c
index c3834dad09b3bce4dccec2180478d852ffddb70d..de12b8128b959d5351bc6dcb26263f5ffc020503 100644 (file)
@@ -1825,6 +1825,7 @@ static int proc_map_files_get_link(struct dentry *dentry, struct path *path)
        if (rc)
                goto out_mmput;
 
+       rc = -ENOENT;
        down_read(&mm->mmap_sem);
        vma = find_exact_vma(mm, vm_start, vm_end);
        if (vma && vma->vm_file) {