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>
Šī revīzija ir iekļauta:
Trond Myklebust
2010-11-20 12:22:20 -05:00
vecāks b47d19de2c
revīzija 463a376eae
3 mainīti faili ar 3 papildinājumiem un 3 dzēšanām

Parādīt failu

@@ -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);
}
/*