dect
/
linux-2.6
Archived
13
0
Fork 0

NFS: Fix the error handling in "uncached_readdir()"

Currently, uncached_readdir() is broken because if fails to handle
the results from nfs_readdir_xdr_to_array() correctly.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
Trond Myklebust 2010-11-20 13:24:49 -05:00
parent 7a8e1dc34f
commit 85f8607e16
1 changed files with 2 additions and 3 deletions

View File

@ -766,10 +766,9 @@ int uncached_readdir(nfs_readdir_descriptor_t *desc, void *dirent,
desc->page_index = 0;
desc->page = page;
if (nfs_readdir_xdr_to_array(desc, page, inode) == -1) {
status = -EIO;
status = nfs_readdir_xdr_to_array(desc, page, inode);
if (status < 0)
goto out_release;
}
status = nfs_do_filldir(desc, dirent, filldir);