Files
erofs-linux/drivers/md
Genjian Zhang 4b22d0801f 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 <[email protected]>
Signed-off-by: Mikulas Patocka <[email protected]>
Fixes: cc8394d86f ("dm thin: provide userspace access to pool metadata")
Cc: [email protected]
2026-07-11 15:18:51 +02:00
..
…
2026-07-10 18:40:27 +02:00
…
…
…
2026-01-26 13:17:38 +08:00
2026-01-26 13:17:38 +08:00