diff options
| author | Mikulas Patocka <mpatocka@redhat.com> | 2026-11-06 19:39:54 +0100 |
|---|---|---|
| committer | Mikulas Patocka <mpatocka@redhat.com> | 2026-11-06 20:35:30 +0100 |
| commit | 421420758be348cb90715bfaa26e1211a12ff1d0 (patch) | |
| tree | 1c360f632fda0719f057782ade5009f9fe81ef57 /rust/kernel/alloc/kvec/errors.rs | |
| parent | d12afc2f9ed6e14019fed9c02a74ad699915dc85 (diff) | |
dm-cache: fix ending a cursor that never began
If dm_bitset_cursor_begin fails, dm_array_cursor_end(&cmd->hint_cursor)
is called. However, cmd->hint_cursor was only initialized if the variable
hints_valid is true. Thus, we must also destroy hint_cursor only if
hints_valid is true.
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Assisted-by: Claude:claude-opus-5
Cc: stable@vger.kernel.org
Fixes: 629d0a8a1a10 ("dm cache metadata: add "metadata2" feature")
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions
