Skip to content
Commit b7773261 authored by Mike Snitzer's avatar Mike Snitzer Committed by Ben Hutchings
Browse files

dm btree: fix leak of bufio-backed block in btree_split_sibling error path

commit 30ce6e1c

 upstream.

The block allocated at the start of btree_split_sibling() is never
released if later insert_at() fails.

Fix this by releasing the previously allocated bufio block using
unlock_block().

Reported-by: default avatarMikulas Patocka <mpatocka@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
parent 9b0a1332
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment