From: Dave Chinner Date: Mon, 6 Apr 2009 16:40:17 +0000 (+0200) Subject: xfs: fix double free of inode X-Git-Tag: v2.6.30-rc2~68^2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=705db3fd4660174a27418bbcb874d209a76044eb;p=pandora-kernel.git xfs: fix double free of inode If we fail to initialise the VFS inode in inode_init_always(), it will call ->delete_inode internally resulting in the inode being freed. Hence we need to delay the call to inode_init_always() until after the XFS inode is sufficient set up to handle a call to ->delete_inode, and then if that fails do not touch the inode again at all as it has been freed. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig --- Reading git-diff-tree failed