From: Latchesar Ionkov Date: Fri, 23 Sep 2005 04:43:53 +0000 (-0700) Subject: [PATCH] v9fs: don't free root dentry & inode if error occurs in v9fs_get_sb X-Git-Tag: v2.6.14-rc3~51^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f71626a461e7d4af099ca71830ea530e96c22e11;p=pandora-kernel.git [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 Cc: Eric Van Hensbergen Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed