提交 9aa48b7e 编写于 作者: T Trond Myklebust

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: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 449231d6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册