summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorDave Chinner <david@fromorbit.com>2009-04-06 18:40:17 +0200
committerChristoph Hellwig <hch@brick.lst.de>2009-04-06 18:40:17 +0200
commit705db3fd4660174a27418bbcb874d209a76044eb (patch)
tree84ec380710246cb3b97cd46ee57b3555d3afd07b /virt
parenta6cb767e24b1dbedfcfa8077eab0aa2eab224038 (diff)
downloadtalos-obmc-linux-705db3fd4660174a27418bbcb874d209a76044eb.tar.gz
talos-obmc-linux-705db3fd4660174a27418bbcb874d209a76044eb.zip
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 <david@fromorbit.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud