From 3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Thu, 21 Oct 2010 16:33:16 -0400 Subject: [PATCH] NFS: nfs_readdir_filler catch all errors Check for all errors, not a specific one. Signed-off-by: Bryan Schumaker Signed-off-by: Trond Myklebust --- fs/nfs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c index 5d7da3ad4e85..7b8b7c59db9f 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); -- GitLab