diff options
| author | Joe Thornber <ejt@redhat.com> | 2015-12-10 14:37:53 +0000 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2016-01-18 22:27:26 +0000 |
| commit | a94064d4ee8ff28a1de3decd6a5b3a329848c5b3 (patch) | |
| tree | 1c7babf6d785b3d93835b4d7b67de753613f2b27 /include/linux | |
| parent | 35f6d73878b83e480a5435b71ff6b82e22b5ad77 (diff) | |
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: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
