]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[XFS] don't leak m_fsname/m_rtname/m_logname
authorChristoph Hellwig <hch@infradead.org>
Wed, 13 Aug 2008 06:04:05 +0000 (16:04 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Wed, 13 Aug 2008 06:04:05 +0000 (16:04 +1000)
commita738159df2b97398f960978272944cbdd8f726ef
tree20959d5f1d941dd7c755bf9bc8141f20f97249dd
parent5e9da7b7a1edfc75a839b0269935393fa347f38b
[XFS] don't leak m_fsname/m_rtname/m_logname

Add a helper to free the m_fsname/m_rtname/m_logname allocations and use
it properly for all mount failure cases. Also switch the allocations for
these to kstrdup while we're at it.

SGI-PV: 981498

SGI-Modid: xfs-linux-melb:xfs-kern:31728a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Niv Sardi <xaiki@sgi.com>
Signed-off-by: David Chinner <david@fromorbit.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_super.c
fs/xfs/xfs_mount.c