Skip to content

Commit

Permalink
NFS: Don't expose internal READDIR errors to userspace
Browse files Browse the repository at this point in the history
 Fixes a condition whereby the kernel is returning the non-POSIX error
 EBADCOOKIE to userspace.

 Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 23, 2005
1 parent 449231d commit 9aa48b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,8 +565,6 @@ static int nfs_readdir(struct file *filp, void *dirent, filldir_t filldir)
}
}
unlock_kernel();
if (desc->error < 0)
return desc->error;
if (res < 0)
return res;
return 0;
Expand Down

0 comments on commit 9aa48b7

Please sign in to comment.