android_kernel_google_msm/drivers/md/persistent-data
Mike Snitzer 86325076e9 dm btree: fix leak of bufio-backed block in btree_split_sibling error path
commit 30ce6e1cc5a0f781d60227e9096c86e188d2c2bd upstream.

The block allocated at the start of btree_split_sibling() is never
released if later insert_at() fails.

Fix this by releasing the previously allocated bufio block using
unlock_block().

Reported-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2016-10-26 23:15:35 +08:00
..
dm-block-manager.c
dm-block-manager.h
dm-btree-internal.h dm btree: add ref counting ops for the leaves of top level btrees 2016-03-21 09:17:52 +08:00
dm-btree-remove.c dm btree remove: fix a bug when rebalancing nodes after removal 2016-03-21 09:17:58 +08:00
dm-btree-spine.c dm btree: add ref counting ops for the leaves of top level btrees 2016-03-21 09:17:52 +08:00
dm-btree.c dm btree: fix leak of bufio-backed block in btree_split_sibling error path 2016-10-26 23:15:35 +08:00
dm-btree.h
dm-persistent-data-internal.h
dm-space-map-checker.c
dm-space-map-checker.h
dm-space-map-common.c dm space map common: make sure new space is used during extend 2014-02-13 11:51:14 -08:00
dm-space-map-common.h
dm-space-map-disk.c
dm-space-map-disk.h
dm-space-map-metadata.c
dm-space-map-metadata.h
dm-space-map.h
dm-transaction-manager.c
dm-transaction-manager.h
Kconfig
Makefile