Joe Thornber ed8b45a367 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
2015-12-10 10:30:18 -05:00
..
2015-10-31 19:06:01 -04:00
2014-01-14 23:23:03 -05:00
2015-10-31 19:06:01 -04:00
2015-10-31 19:06:01 -04:00
2015-10-31 19:05:59 -04:00
2015-10-31 19:05:59 -04:00
2012-07-30 17:25:16 -07:00
2015-10-31 19:06:01 -04:00
2015-10-31 19:05:59 -04:00
2015-08-13 12:31:57 -06:00
2015-10-24 17:16:19 +11:00
2015-08-13 12:31:57 -06:00
2015-11-04 21:12:47 -08:00
2015-11-04 21:12:47 -08:00
2015-11-01 13:48:29 +11:00
2015-11-04 21:12:47 -08:00