]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: check xdr_decode for errors
authorBryan Schumaker <bjschuma@netapp.com>
Thu, 21 Oct 2010 20:33:16 +0000 (16:33 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Sat, 23 Oct 2010 19:27:36 +0000 (15:27 -0400)
commitc26d71977971af394f0c6d47e0ce0a91df5e3102
tree6c6fa331811f6c8e5217193276602bd353613061
parent4428fbbd8407fa6ad9f9ac97ebe826fbdbac8670
NFS: check xdr_decode for errors

Check if the decoded entry has the eof bit set when returning from xdr_decode
with an error.  If it does, we should set the eof bits in the array before
returning.  This should keep us from looping when we expect more data but the
server doesn't give us anything new.

Signed-off-by: Bryan Schumaker <bjschuma@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/dir.c