]> rtime.felk.cvut.cz Git - linux-imx.git/commit
Btrfs: fix double free in the iterate_extent_inodes()
authorWang Shilong <wangsl-fnst@cn.fujitsu.com>
Sun, 31 Mar 2013 10:36:37 +0000 (10:36 +0000)
committerJosef Bacik <jbacik@fusionio.com>
Mon, 6 May 2013 19:54:31 +0000 (15:54 -0400)
commit5c2d867fdcbc11a6862379ebd60b2c1a66e13671
treea2bc4d269f91e709fb79d9a7ac30375c0a97e334
parentf172393952a8771ca8970b8fcdd332a5a6ea0f56
Btrfs: fix double free in the iterate_extent_inodes()

If btrfs_find_all_roots() fails, 'roots' has been freed or 'roots'
fails to allocate. We don't need to free it outside btrfs_find_all_roots()
again.Fix it.

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