Skip to content
Commit 50a8a732 authored by Thomas Bertschinger's avatar Thomas Bertschinger Committed by Kent Overstreet
Browse files

bcachefs: fix invalid memory access in bch2_fs_alloc() error path



When bch2_fs_alloc() gets an error before calling
bch2_fs_btree_iter_init(), bch2_fs_btree_iter_exit() makes an invalid
memory access because btree_trans_list is uninitialized.

Signed-off-by: default avatarThomas Bertschinger <tahbertschinger@gmail.com>
Fixes: 6bd68ec2 ("bcachefs: Heap allocate btree_trans")
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 8bf77197
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