NFSv4: Fix a readdir regression
commit46c441db452d0eb8e52b426f37304f131e30c808
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Jun 2011 17:15:41 +0000 (16 13:15 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 9 Jul 2011 06:15:22 +0000 (8 23:15 -0700)
tree99e4dabd34db6b19686f9f8cfee3670c2fa5d4d6
parentcd620702508a716ff5e16421fd65b47cdba68ba9
NFSv4: Fix a readdir regression

commit ee7b75fc4f3ae49e1f25bf56219bb5de3c29afaf upstream.

Commit 7ebb9315 (NFS: use secinfo when crossing mountpoints) introduces
a regression when decoding an NFSv4 readdir entry that sets the
rdattr_error field.
By treating the resulting value as if it is a decoding error, the current
code may cause us to skip valid readdir entries.

Reported-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/nfs4xdr.c