diff options
author | 2009-04-06 18:40:17 +0200 | |
---|---|---|
committer | 2009-04-06 18:40:17 +0200 | |
commit | 705db3fd4660174a27418bbcb874d209a76044eb (patch) | |
tree | 84ec380710246cb3b97cd46ee57b3555d3afd07b /lib/dma-debug.c | |
parent | xfs: validate log feature fields correctly (diff) | |
download | linux-rng-705db3fd4660174a27418bbcb874d209a76044eb.tar.xz linux-rng-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 'lib/dma-debug.c')
0 files changed, 0 insertions, 0 deletions