diff options
Diffstat (limited to 'fs/devpts/root.c')
-rw-r--r-- | fs/devpts/root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/devpts/root.c b/fs/devpts/root.c index 93df8a8ec..39ea6afe3 100644 --- a/fs/devpts/root.c +++ b/fs/devpts/root.c @@ -62,7 +62,7 @@ static int devpts_root_readdir(struct file *filp, void *dirent, filldir_t filldi filp->f_pos = ++nr; /* fall through */ default: - while ( nr < sbi->max_ptys ) { + while ( nr - 2 < sbi->max_ptys ) { int ptynr = nr - 2; if ( sbi->inodes[ptynr] ) { genptsname(numbuf, ptynr); |