]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] v9fs: don't free root dentry & inode if error occurs in v9fs_get_sb
authorLatchesar Ionkov <lucho@ionkov.net>
Fri, 23 Sep 2005 04:43:53 +0000 (21:43 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 23 Sep 2005 05:17:33 +0000 (22:17 -0700)
commitf71626a461e7d4af099ca71830ea530e96c22e11
tree69cc1ef26c39887a938618d8e8a6f788ae8b4488
parenta1f9d8d23fef301ba0c0b4983e0aa947168e1c37
[PATCH] v9fs: don't free root dentry & inode if error occurs in v9fs_get_sb

If error occurs while in v9fs_get_sb after it calles sget, the dentry object
of the root and its inode may be freed twice -- once while handling the error
in v9fs_get_sb, and second time when v9fs_get_sb calles deactivate_super
(which in turn calls v9fs_kill_super)

The patch removes the unnecessary code that frees the root dentry and its
inode.

Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/9p/vfs_super.c