From: Dave Chinner Date: Tue, 12 Jun 2012 04:20:26 +0000 (+1000) Subject: xfs: fix allocbt cursor leak in xfs_alloc_ag_vextent_near X-Git-Tag: v3.2.64~263 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=381687bd230ca824df7a70aa1f8fa3a4345ee6e2;p=pandora-kernel.git xfs: fix allocbt cursor leak in xfs_alloc_ag_vextent_near commit 76d095388b040229ea1aad7dea45be0cfa20f589 upstream. 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 Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Ben Myers Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed