summaryrefslogtreecommitdiff
path: root/drivers/hid/hidraw.c
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 /drivers/hid/hidraw.c
parenta6cb767e24b1dbedfcfa8077eab0aa2eab224038 (diff)
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 'drivers/hid/hidraw.c')
0 files changed, 0 insertions, 0 deletions