Commits
![Shenghui Wang](https://secure.gravatar.com/avatar/6182bdfbe36361dee423c4c796e4f35d.jpg?s=96&d=mm)
Shenghui Wang committed f16277ca20a
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: Shenghui Wang <shhuiw@foxmail.com> Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>