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 --- dir.c | 2 -- 1 files changed, 2 deletions(-) Index: linux-2.6.13-rc6/fs/nfs/dir.c =================================================================== --- linux-2.6.13-rc6.orig/fs/nfs/dir.c +++ linux-2.6.13-rc6/fs/nfs/dir.c @@ -565,8 +565,6 @@ static int nfs_readdir(struct file *filp } } unlock_kernel(); - if (desc->error < 0) - return desc->error; if (res < 0) return res; return 0;