Commit 3c8a1aee authored by Bryan Schumaker's avatar Bryan Schumaker Committed by Trond Myklebust

NFS: nfs_readdir_filler catch all errors

Check for all errors, not a specific one.
Signed-off-by: default avatarBryan Schumaker <bjschuma@netapp.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 56e4ebf8
...@@ -556,7 +556,7 @@ int nfs_readdir_filler(nfs_readdir_descriptor_t *desc, struct page* page) ...@@ -556,7 +556,7 @@ int nfs_readdir_filler(nfs_readdir_descriptor_t *desc, struct page* page)
{ {
struct inode *inode = desc->file->f_path.dentry->d_inode; struct inode *inode = desc->file->f_path.dentry->d_inode;
if (nfs_readdir_xdr_to_array(desc, page, inode) == -1) if (nfs_readdir_xdr_to_array(desc, page, inode) < 0)
goto error; goto error;
SetPageUptodate(page); SetPageUptodate(page);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment