From: Filipe Manana Date: Mon, 6 Oct 2014 21:14:24 +0000 (+0100) Subject: Btrfs: don't leak pages and memory on compressed write error X-Git-Tag: omap-for-v3.19/fixes-rc1~111^2~45 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40ae837b43565c47ee171e704d05947fd5c2bae9;p=pandora-kernel.git Btrfs: don't leak pages and memory on compressed write error In inode.c:submit_compressed_extents(), if we fail before calling btrfs_submit_compressed_write(), or when that function fails, we were freeing the async_extent structure without releasing its pages and freeing the pages array. Signed-off-by: Filipe Manana Signed-off-by: Chris Mason --- Reading git-diff-tree failed