diff options
author | Bryan Schumaker <bjschuma@netapp.com> | 2010-10-21 16:33:16 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-10-23 15:27:35 -0400 |
commit | 3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217 (patch) | |
tree | 7483a41703dafcbc8526c112e3e625c3a881fc99 /fs/nfs/dir.c | |
parent | 56e4ebf877b6043c289bda32a5a7385b80c17dee (diff) | |
download | kernel_samsung_aries-3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217.zip kernel_samsung_aries-3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217.tar.gz kernel_samsung_aries-3c8a1aeed8fd7f89bd0400fad72cbc1ac3460217.tar.bz2 |
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/dir.c')
-rw-r--r-- | fs/nfs/dir.c | 2 |
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); |