summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/orphan.c
diff options
context:
space:
mode:
authorLiu Bo2016-07-12 19:29:37 +0200
committerDavid Sterba2016-07-26 13:52:25 +0200
commit0fd8c3dae14fb64947842472940b807ca0781da9 (patch)
treea45c5235f5267739564328a3ee0ba6ecf96e73fe /fs/btrfs/orphan.c
parentBtrfs: fix eb memory leak due to readpage failure (diff)
downloadkernel-qcow2-linux-0fd8c3dae14fb64947842472940b807ca0781da9.tar.gz
kernel-qcow2-linux-0fd8c3dae14fb64947842472940b807ca0781da9.tar.xz
kernel-qcow2-linux-0fd8c3dae14fb64947842472940b807ca0781da9.zip
Btrfs: fix panic in balance due to EIO
During build_backref_tree(), if we fail to read a btree node, we can eventually run into BUG_ON(cache->nr_nodes) that we put in backref_cache_cleanup(), meaning we have at least one memory leak. This frees the backref_node that we's allocated at the very beginning of build_backref_tree(). Signed-off-by: Liu Bo <bo.li.liu@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/orphan.c')
0 files changed, 0 insertions, 0 deletions