]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix possible memory leak in the find_parent_nodes()
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Wed, 8 May 2013 08:10:25 +0000 (08:10 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Sat, 18 May 2013 01:40:17 +0000 (21:40 -0400)
commit4c0d2197fec0f7af759021330f29a89b6833aa88
tree4d4fe921e979bf12c98f488362afa45c5cd18429
parentaf6b9b34a3b6c777bd5b26fbf4e640bf3213c180
Btrfs: fix possible memory leak in the find_parent_nodes()

In the find_parent_nodes(), if read_tree_block() fails, we can
not return directly, we should free some allocated memory otherwise
memory leak happens.

Signed-off-by: Wang Shilong <wangsl-fnst@cn.fujitsu.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
fs/btrfs/backref.c