]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: fix uninitialized field in fuse_inode
authorJohn Muir <muirj@nortel.com>
Thu, 29 Nov 2007 00:22:02 +0000 (16:22 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 29 Nov 2007 17:24:54 +0000 (09:24 -0800)
commitc8642b3df4d8237cde178a3399924ee28606143f
tree5d59ccb2236110aeb8fddb75c94fc52beaf79e3b
parentc2cc166fdd2e7def8964cd91317013d2d39ac512
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 <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/fuse/inode.c