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>
This commit is contained in:
Trond Myklebust 2005-08-25 16:25:35 -07:00
Родитель 449231d6dd
Коммит 9aa48b7e27
1 изменённых файлов: 0 добавлений и 2 удалений

Просмотреть файл

@ -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;