NFSv4: Fix a readdir regression
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Jun 2011 17:15:41 +0000 (13:15 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 16 Jun 2011 17:24:47 +0000 (13:24 -0400)
commitee7b75fc4f3ae49e1f25bf56219bb5de3c29afaf
tree929f8cb07d4e974f5cfa8952a8d6643edfb5a2f5
parent9e2dfdb3081edfae66a49013517e80dd8a0469fa
NFSv4: Fix a readdir regression

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>
Cc: stable@kernel.org [2.6.39]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c