Btrfs: fix possible memory leak in btrfs_create_tree()
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Wed, 9 Apr 2014 00:18:04 +0000 (09:18 +0900)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:42 +0000 (17:20 -0700)
In btrfs_create_tree(), if btrfs_insert_root() fails, we should
free root->commit_root.

Reported-by: Alex Lyakas <alex@zadarastorage.com>
Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/disk-io.c

Simple merge