diff mbox

btrfs-progs: add missing free operation of raid_map for raid56

Message ID 8cbfc51dba83890b0e7e22ef2f9985674294c41f.1440483058.git.zhaolei@cn.fujitsu.com (mailing list archive)
State Accepted
Headers show

Commit Message

Zhaolei Aug. 25, 2015, 6:11 a.m. UTC
We forgot free raid_map for raid56's map_bio.
This patch add it.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
---
 disk-io.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Sterba Aug. 25, 2015, 3:43 p.m. UTC | #1
On Tue, Aug 25, 2015 at 02:11:07PM +0800, Zhao Lei wrote:
> We forgot free raid_map for raid56's map_bio.
> This patch add it.
> 
> Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>

Applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/disk-io.c b/disk-io.c
index fdcfd6d..46a5a46 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -428,6 +428,7 @@  int write_and_map_eb(struct btrfs_trans_handle *trans,
 		ret = write_extent_to_disk(eb);
 		BUG_ON(ret);
 	}
+	kfree(raid_map);
 	kfree(multi);
 	return 0;
 }