From: Dave Chinner Date: Sun, 28 Sep 2014 23:45:32 +0000 (+1000) Subject: xfs: fix double free in xlog_recover_commit_trans X-Git-Tag: fixes-against-v3.18-rc2~104^2~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b863db97a18a04c90ebd57d84e1b7863114dcb;p=pandora-kernel.git xfs: fix double free in xlog_recover_commit_trans When an error occurs during buffer submission in xlog_recover_commit_trans(), we free the trans structure twice. Fix it by only freeing the structure in the caller regardless of the success or failure of the function. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- Reading git-diff-tree failed