NFS: Don't expose internal READDIR errors to userspace
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 25 Aug 2005 23:25:35 +0000 (16:25 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 23 Sep 2005 16:38:01 +0000 (12:38 -0400)
 Fixes a condition whereby the kernel is returning the non-POSIX error
 EBADCOOKIE to userspace.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c

index 94a7fcee0624666b655a87420aaf17b6675e3c15..c70eabd6d179833d40792852a02267d767fd9500 100644 (file)
@@ -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;