diff options
author | Joe Thornber <ejt@redhat.com> | 2015-12-10 15:37:53 +0100 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2015-12-10 16:30:18 +0100 |
commit | ed8b45a3679eb49069b094c0711b30833f27c734 (patch) | |
tree | af96251b78543f6426d3f3488350bf57b06ac584 /drivers/md/dm-thin-metadata.c | |
parent | dm space map metadata: fix ref counting bug when bootstrapping a new space map (diff) | |
download | linux-ed8b45a3679eb49069b094c0711b30833f27c734.tar.xz linux-ed8b45a3679eb49069b094c0711b30833f27c734.zip |
dm btree: fix bufio buffer leaks in dm_btree_del() error path
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>
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/md/dm-thin-metadata.c')
0 files changed, 0 insertions, 0 deletions