aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4xdr.c
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2010-11-20 12:22:20 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2010-11-22 13:24:43 -0500
commit463a376eae1c92a66c912af539bfd4bbefa37673 (patch)
treeb6bc0eb099669ead19ef97f27c7e0b65d38bdb82 /fs/nfs/nfs4xdr.c
parentb47d19de2c714020ba8f5545a6e7d4968f37eb45 (diff)
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/nfs4xdr.c')
-rw-r--r--fs/nfs/nfs4xdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs4xdr.c b/fs/nfs/nfs4xdr.c
index b7a204ff6fe1..a3b39cbc90f9 100644
--- a/fs/nfs/nfs4xdr.c
+++ b/fs/nfs/nfs4xdr.c
@@ -6221,7 +6221,7 @@ __be32 *nfs4_decode_dirent(struct xdr_stream *xdr, struct nfs_entry *entry,
6221 6221
6222out_overflow: 6222out_overflow:
6223 print_overflow_msg(__func__, xdr); 6223 print_overflow_msg(__func__, xdr);
6224 return ERR_PTR(-EIO); 6224 return ERR_PTR(-EAGAIN);
6225} 6225}
6226 6226
6227/* 6227/*