diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-08-26 01:25:35 +0200 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-09-23 18:38:01 +0200 |
commit | 9aa48b7e270d13c8781414dce081a42cae20a80d (patch) | |
tree | 788749de63303b280155cd84c5a47434f029d6e0 /fs | |
parent | From: Olaf Kirch <okir@suse.de> (diff) | |
download | linux-9aa48b7e270d13c8781414dce081a42cae20a80d.tar.xz linux-9aa48b7e270d13c8781414dce081a42cae20a80d.zip |
NFS: Don't expose internal READDIR errors to userspace
Fixes a condition whereby the kernel is returning the non-POSIX error
EBADCOOKIE to userspace.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfs/dir.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 94a7fcee0624..c70eabd6d179 100644 --- a/fs/nfs/dir.c +++ b/fs/nfs/dir.c @@ -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; |