From: Dave Chinner Date: Tue, 28 Oct 2014 21:22:18 +0000 (+1100) Subject: xfs: bulkstat doesn't release AGI buffer on error X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~149^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6bbce54efa9145dbcf3029c885549f7ebc40a3b;p=pandora-kernel.git xfs: bulkstat doesn't release AGI buffer on error The recent refactoring of the bulkstat code left a small landmine in the code. If a inobt read fails, then the tree walk is aborted and returns without releasing the AGI buffer or freeing the cursor. This can lead to a subsequent bulkstat call hanging trying to grab the AGI buffer again. cc: Signed-off-by: Dave Chinner Reviewed-by: Brian Foster Reviewed-by: Eric Sandeen Signed-off-by: Dave Chinner --- Reading git-diff-tree failed