summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorBryan Schumaker <bjschuma@netapp.com>2010-10-21 16:33:16 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-10-23 15:27:35 -0400
commit3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217 (patch)
tree7483a41703dafcbc8526c112e3e625c3a881fc99 /fs/nfs
parent56e4ebf877b6043c289bda32a5a7385b80c17dee (diff)
downloadop-kernel-dev-3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217.zip
op-kernel-dev-3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217.tar.gz
NFS: nfs_readdir_filler catch all errors
Check for all errors, not a specific one. Signed-off-by: Bryan Schumaker <bjschuma@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 5d7da3a..7b8b7c5 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -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;
- if (nfs_readdir_xdr_to_array(desc, page, inode) == -1)
+ if (nfs_readdir_xdr_to_array(desc, page, inode) < 0)
goto error;
SetPageUptodate(page);
OpenPOWER on IntegriCloud