diff options
| author | 2026-07-11 18:05:26 +0800 | |
|---|---|---|
| committer | 2026-07-11 15:18:51 +0200 | |
| commit | 4b22d0801fadfcae2e106e6ba32e49439c7c7ebf (patch) | |
| tree | 07a60ca856b0d5ebce79047ef0cf7772e89695c2 /tools/lib/python | |
| parent | dm-stats: fix dm_jiffies_to_msec64 (diff) | |
dm thin metadata: fix superblock refcount leak on snapshot shadow failure
__reserve_metadata_snap() increments THIN_SUPERBLOCK_LOCATION in the
metadata space map before shadowing it. When dm_tm_shadow_block()
fails, a reference is leaked in the metadata space map.
Fix by adding the missing dm_sm_dec_block().
Signed-off-by: Genjian Zhang <zhanggenjian@kylinos.cn>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Fixes: cc8394d86f04 ("dm thin: provide userspace access to pool metadata")
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
