Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9aa48b7e authored by Trond Myklebust's avatar Trond Myklebust
Browse files

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: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 449231d6
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;