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>

+2 -3
+2 -3
fs/nfs/dir.c
··· 766 766 desc->page_index = 0; 767 767 desc->page = page; 768 768 769 - if (nfs_readdir_xdr_to_array(desc, page, inode) == -1) { 770 - status = -EIO; 769 + status = nfs_readdir_xdr_to_array(desc, page, inode); 770 + if (status < 0) 771 771 goto out_release; 772 - } 773 772 774 773 status = nfs_do_filldir(desc, dirent, filldir); 775 774