]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFS] fix inode leak in xfs_iget_core()
authorDavid Chinner <dgc@sgi.com>
Thu, 6 Mar 2008 02:49:43 +0000 (13:49 +1100)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 6 Mar 2008 05:38:50 +0000 (16:38 +1100)
commit72772a3b5b158cddcfbbff3ef13b26b03a905158
treee87303c54834c58dca859c881d693babbf0fce5e
parent92d9cd1059f80b9c89dee191ffb88b0872e6a7ae
[XFS] fix inode leak in xfs_iget_core()

If the radix_tree_preload() fails, we need to destroy the inode we just
read in before trying again. This could leak xfs_vnode structures when
there is memory pressure. Noticed by Christoph Hellwig.

SGI-PV: 977823
SGI-Modid: xfs-linux-melb:xfs-kern:30606a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
fs/xfs/xfs_iget.c