git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b0a133
)
dm btree: fix leak of bufio-backed block in btree_split_sibling error path
author
Mike Snitzer
<snitzer@redhat.com>
Mon, 23 Nov 2015 21:24:45 +0000
(16:24 -0500)
committer
Ben Hutchings
<ben@decadent.org.uk>
Wed, 30 Dec 2015 02:25:59 +0000
(
02:25
+0000)
commit
30ce6e1cc5a0f781d60227e9096c86e188d2c2bd
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: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/md/persistent-data/dm-btree.c
patch
|
blob
|
history
diff --cc
drivers/md/persistent-data/dm-btree.c
Simple merge