aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2005-08-25 19:25:35 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2005-09-23 12:38:01 -0400
commit9aa48b7e270d13c8781414dce081a42cae20a80d (patch)
tree788749de63303b280155cd84c5a47434f029d6e0
parent449231d6ddf50ca46b7fb2f76ecf790135222913 (diff)
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>
-rw-r--r--fs/nfs/dir.c2
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)
565 } 565 }
566 } 566 }
567 unlock_kernel(); 567 unlock_kernel();
568 if (desc->error < 0)
569 return desc->error;
570 if (res < 0) 568 if (res < 0)
571 return res; 569 return res;
572 return 0; 570 return 0;