Commit:     fbee36b92abc965d3fc2862aa60fd0dfcf779d0b
Parent:     d0186b25e65d4d786727a03044b8aafe2ba118ee
Author:     John Muir <[EMAIL PROTECTED]>
AuthorDate: Wed Nov 28 16:22:02 2007 -0800
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Thu Nov 29 09:24:54 2007 -0800

    fuse: fix uninitialized field in fuse_inode
    I found problems accessing (executing) previously existing files, until
    I did chmod on them (or setattr).
    If the fi->attr_version is not initialized, then it could be
    larger than fc->attr_version until a setattr is executed, and as a
    result the inode attributes would never be set.
    Signed-off-by: Miklos Szeredi <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/fuse/inode.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 0cc95ee..84f9f7d 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -56,6 +56,7 @@ static struct inode *fuse_alloc_inode(struct super_block *sb)
        fi->i_time = 0;
        fi->nodeid = 0;
        fi->nlookup = 0;
+       fi->attr_version = 0;
        fi->forget_req = fuse_request_alloc();
        if (!fi->forget_req) {
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to