]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix allocbt cursor leak in xfs_alloc_ag_vextent_near
authorDave Chinner <dchinner@redhat.com>
Tue, 12 Jun 2012 04:20:26 +0000 (14:20 +1000)
committerBen Myers <bpm@sgi.com>
Thu, 21 Jun 2012 19:20:20 +0000 (14:20 -0500)
commitb66d1466e931e0651d13a684f5afc335eb0c4e43
treee3aa3051f396898675fff5ae227fd7c7d0f46aa6
parentb2d9c361a1035f8b74b53371e03190f290cfd768
xfs: fix allocbt cursor leak in xfs_alloc_ag_vextent_near

When we fail to find an matching extent near the requested extent
specification during a left-right distance search in
xfs_alloc_ag_vextent_near, we fail to free the original cursor that
we used to look up the XFS_BTNUM_CNT tree and hence leak it.

Reported-by: Chris J Arges <chris.j.arges@canonical.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
fs/xfs/xfs_alloc.c