summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorGenjian Zhang <zhanggenjian@kylinos.cn>2026-07-11 18:05:26 +0800
committerMikulas Patocka <mpatocka@redhat.com>2026-07-11 15:18:51 +0200
commit4b22d0801fadfcae2e106e6ba32e49439c7c7ebf (patch)
tree07a60ca856b0d5ebce79047ef0cf7772e89695c2 /rust/kernel
parent386df1a57b631c456d14f857cb0c0c2e11c16bef (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 'rust/kernel')
0 files changed, 0 insertions, 0 deletions