diff options
author | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-11-20 18:22:20 +0100 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2010-11-22 19:24:43 +0100 |
commit | 463a376eae1c92a66c912af539bfd4bbefa37673 (patch) | |
tree | b6bc0eb099669ead19ef97f27c7e0b65d38bdb82 /fs/nfs/nfs2xdr.c | |
parent | Pure nfs client performance using odirect. (diff) | |
download | linux-463a376eae1c92a66c912af539bfd4bbefa37673.tar.xz linux-463a376eae1c92a66c912af539bfd4bbefa37673.zip |
NFS: Buffer overflow in ->decode_dirent() should not be fatal
Overflowing the buffer in the readdir ->decode_dirent() should not lead to
a fatal error, but rather to an attempt to reread the record in question.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs2xdr.c')
-rw-r--r-- | fs/nfs/nfs2xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs2xdr.c b/fs/nfs/nfs2xdr.c index 2563f765c9b4..ab5937734f0b 100644 --- a/fs/nfs/nfs2xdr.c +++ b/fs/nfs/nfs2xdr.c @@ -495,7 +495,7 @@ nfs_decode_dirent(struct xdr_stream *xdr, struct nfs_entry *entry, struct nfs_se out_overflow: print_overflow_msg(__func__, xdr); - return ERR_PTR(-EIO); + return ERR_PTR(-EAGAIN); } /* |