Skip to content
Commit f16277ca authored by Shenghui Wang's avatar Shenghui Wang Committed by Jens Axboe
Browse files

bcache: fix wrong usage use-after-freed on keylist in out_nocoalesce branch of btree_gc_coalesce



Elements of keylist should be accessed before the list is freed.
Move bch_keylist_free() calling after the while loop to avoid wrong
content accessed.

Signed-off-by: default avatarShenghui Wang <shhuiw@foxmail.com>
Signed-off-by: default avatarColy Li <colyli@suse.de>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 63120731
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment