Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91921
b: refs/heads/master
c: 9b4f526
h: refs/heads/master
i:
  91919: c522da3
v: v3
  • Loading branch information
Al Viro committed Apr 22, 2008
1 parent d5fb1eb commit faf4d27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: ed1524371716466e9c762808b02601d0d0276a92
refs/heads/master: 9b4f526cdc0f95f635607dfba6ac788b3deca188
4 changes: 1 addition & 3 deletions trunk/fs/proc/base.c
Original file line number Diff line number Diff line change
Expand Up @@ -1626,7 +1626,6 @@ static int proc_readfd_common(struct file * filp, void * dirent,
unsigned int fd, ino;
int retval;
struct files_struct * files;
struct fdtable *fdt;

retval = -ENOENT;
if (!p)
Expand All @@ -1649,9 +1648,8 @@ static int proc_readfd_common(struct file * filp, void * dirent,
if (!files)
goto out;
rcu_read_lock();
fdt = files_fdtable(files);
for (fd = filp->f_pos-2;
fd < fdt->max_fds;
fd < files_fdtable(files)->max_fds;
fd++, filp->f_pos++) {
char name[PROC_NUMBUF];
int len;
Expand Down

0 comments on commit faf4d27

Please sign in to comment.