From: Brian Foster Date: Wed, 19 Aug 2015 00:01:40 +0000 (+1000) Subject: xfs: add missing bmap cancel calls in error paths X-Git-Tag: omap-for-v4.3/fixes-rc1~79^2~3^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4a97a04227d5ba91b91888a016e2300861cfbc7;p=pandora-kernel.git xfs: add missing bmap cancel calls in error paths If a failure occurs after the bmap free list is populated and before xfs_bmap_finish() completes successfully (which returns a partial list on failure), the bmap free list must be cancelled. Otherwise, the extent items on the list are never freed and a memory leak occurs. Several random error paths throughout the code suffer this problem. Fix these up such that xfs_bmap_cancel() is always called on error. Signed-off-by: Brian Foster Reviewed-by: Dave Chinner Signed-off-by: Dave Chinner --- Reading git-diff-tree failed