android_kernel_samsung_msm8976/drivers/md/persistent-data
Joe Thornber 859ac05006 dm btree: fix bufio buffer leaks in dm_btree_del() error path
commit ed8b45a3679eb49069b094c0711b30833f27c734 upstream.

If dm_btree_del()'s call to push_frame() fails, e.g. due to
btree_node_validator finding invalid metadata, the dm_btree_del() error
path must unlock all frames (which have active dm-bufio buffers) that
were pushed onto the del_stack.

Otherwise, dm_bufio_client_destroy() will BUG_ON() because dm-bufio
buffers have leaked, e.g.:
  device-mapper: bufio: leaked buffer 3, hold count 1, list 0

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-03-03 15:06:22 -08:00
..
Kconfig
Makefile
dm-array.c
dm-array.h
dm-bitset.c
dm-bitset.h
dm-block-manager.c dm transaction manager: fix corruption due to non-atomic transaction commit 2014-05-13 13:59:45 +02:00
dm-block-manager.h dm transaction manager: fix corruption due to non-atomic transaction commit 2014-05-13 13:59:45 +02:00
dm-btree-internal.h dm btree: add ref counting ops for the leaves of top level btrees 2015-10-22 14:37:50 -07:00
dm-btree-remove.c dm btree remove: fix a bug when rebalancing nodes after removal 2015-11-09 10:12:58 -08:00
dm-btree-spine.c dm btree: add ref counting ops for the leaves of top level btrees 2015-10-22 14:37:50 -07:00
dm-btree.c dm btree: fix bufio buffer leaks in dm_btree_del() error path 2016-03-03 15:06:22 -08:00
dm-btree.h
dm-persistent-data-internal.h
dm-space-map-common.c dm space map common: make sure new space is used during extend 2014-02-13 13:48:01 -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: fix sm_bootstrap_get_nr_blocks() 2015-01-08 09:58:15 -08:00
dm-space-map-metadata.h
dm-space-map.h
dm-transaction-manager.c dm transaction manager: fix corruption due to non-atomic transaction commit 2014-05-13 13:59:45 +02:00
dm-transaction-manager.h dm transaction manager: fix corruption due to non-atomic transaction commit 2014-05-13 13:59:45 +02:00