]> git.baikalelectronics.ru Git - kernel.git/commit
Fix leak in __btrfs_map_block error path
authorDave Jones <davej@redhat.com>
Tue, 30 Jul 2013 17:42:17 +0000 (13:42 -0400)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:04:45 +0000 (08:04 -0400)
commit97ac491dfcc05316810c72e2a20645f8afed9f13
tree4875085b04ddcd397cfd319c7ca2ff0808b3f43e
parenteca4910b42ce5b4b6ccb8a7c3210d119b033721d
Fix leak in __btrfs_map_block error path

If we bail out when the stripe alloc fails, we need to undo the
earlier allocation of raid_map.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/volumes.c