]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
commit59885b39303edc0b3284f324a1ca42cb6e7742d0
tree0e04e1c1fc5b0c32407c46ade6548c49e10b42c3
parent776e4aae5508848730a82b4695edfbd7bc802c33
Btrfs: fix possible memory leak in btrfs_create_tree()

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