projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3201f3d
)
NFSv4: nfs4_decode_dirent must clear entry->fattr->valid
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 24 Oct 2010 17:14:02 +0000
(13:14 -0400)
committer
Trond Myklebust
<Trond.Myklebust@netapp.com>
Sun, 24 Oct 2010 17:14:02 +0000
(13:14 -0400)
Otherwise, we may end up reading uninitialised data from the resulting
struct nfs_fattr.
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4xdr.c
b/fs/nfs/nfs4xdr.c
index 707975eebb5d7dde066502fe0be31f63e3fa2b9f..9bf5e66d11db8f7128b62420fd9eead7bf2aafda 100644
(file)
--- a/
fs/nfs/nfs4xdr.c
+++ b/
fs/nfs/nfs4xdr.c
@@
-5815,6
+5815,7
@@
__be32 *nfs4_decode_dirent(struct xdr_stream *xdr, struct nfs_entry *entry,
* since glibc seems to choke on it...)
*/
entry->ino = 1;
+ entry->fattr->valid = 0;
len = ntohl(*p++); /* bitmap length */
if (len-- > 0) {