diff options
author | Stefan Behrens | 2013-05-08 10:56:09 +0200 |
---|---|---|
committer | Josef Bacik | 2013-05-18 03:40:19 +0200 |
commit | 379cde741b220091d2124fb500b178b90ad7f460 (patch) | |
tree | 0f6426bbd7572c279ca365718c1e6da092a42445 /mm/kmemleak.c | |
parent | Btrfs: fix possible memory leak in the find_parent_nodes() (diff) | |
download | kernel-qcow2-linux-379cde741b220091d2124fb500b178b90ad7f460.tar.gz kernel-qcow2-linux-379cde741b220091d2124fb500b178b90ad7f460.tar.xz kernel-qcow2-linux-379cde741b220091d2124fb500b178b90ad7f460.zip |
Btrfs: fix possible memory leak in replace_path()
In replace_path(), if read_tree_block() fails, we cannot return
directly, we should free some allocated memory otherwise memory
leak happens.
Similar to Wang's "Btrfs: fix possible memory leak in the
find_parent_nodes()" patch, the current commit fixes an issue that
is related to the "Btrfs: fix all callers of read_tree_block"
commit.
Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'mm/kmemleak.c')
0 files changed, 0 insertions, 0 deletions