]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Btrfs: open_ctree: Fix possible memory leak
authorchandan <chandan@linux.vnet.ibm.com>
Mon, 5 Oct 2015 16:44:25 +0000 (22:14 +0530)
committerChris Mason <clm@fb.com>
Tue, 6 Oct 2015 13:55:22 +0000 (06:55 -0700)
commite5fffbac4a49270e4976d71a0e054c0cf3ef4f8e
tree66e59e0b269ac75097275d7632ef58060e11876f
parentd9a0540a79f87456907f2ce031f058cf745c5bff
Btrfs: open_ctree: Fix possible memory leak

After reading one of chunk or tree root tree's root node from disk, if the
root node does not have EXTENT_BUFFER_UPTODATE flag set, we fail to release
the memory used by the root node. Fix this.

Signed-off-by: Chandan Rajendra <chandan@linux.vnet.ibm.com>
fs/btrfs/disk-io.c