Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 309738
b: refs/heads/master
c: f05ed3f
h: refs/heads/master
v: v3
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Jun 1, 2012
1 parent 777933f commit 4cc4bcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2344bec788b097b2d1198758bd29c583812b864e
refs/heads/master: f05ed3f1abefd37c08fbf08c766d2abd40607777
13 changes: 7 additions & 6 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1928,21 +1928,22 @@ static int proc_readfd_common(struct file * filp, void * dirent,
fd++, filp->f_pos++) {
char name[PROC_NUMBUF];
int len;
int rv;

if (!fcheck_files(files, fd))
continue;
rcu_read_unlock();

len = snprintf(name, sizeof(name), "%d", fd);
if (proc_fill_cache(filp, dirent, filldir,
name, len, instantiate,
p, &fd) < 0) {
rcu_read_lock();
break;
}
rv = proc_fill_cache(filp, dirent, filldir,
name, len, instantiate, p,
&fd);
if (rv < 0)
goto out_fd_loop;
rcu_read_lock();
}
rcu_read_unlock();
out_fd_loop:
put_files_struct(files);
}
out:
Expand Down

0 comments on commit 4cc4bcb

Please sign in to comment.