]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] fuse: fix dereferencing dentry parent
authorMiklos Szeredi <miklos@szeredi.hu>
Tue, 17 Oct 2006 07:10:12 +0000 (00:10 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 17 Oct 2006 15:18:45 +0000 (08:18 -0700)
commite956edd0523b6b48ed367c63b0c82d8f4c447a58
treea45b03edfa376a769721b69211a9882fcd6f8060
parentd2a85164aaa8d514ef5efbf5d05746e85dd13ddd
[PATCH] fuse: fix dereferencing dentry parent

There's no locking for ->d_revalidate, so fuse_dentry_revalidate() should use
dget_parent() instead of simply dereferencing ->d_parent.

Due to topology changes in the directory tree the parent could become negative
or be destroyed while being used.  There hasn't been any reports about this
yet.

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/fuse/dir.c