Commit 7ffec9cc authored by Kent Overstreet's avatar Kent Overstreet

bcachefs: don't free error pointers

Reported-by: syzbot+3333603f569fc2ef258c@syzkaller.appspotmail.com
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 72e71bf0
...@@ -902,7 +902,8 @@ int bch2_fs_recovery(struct bch_fs *c) ...@@ -902,7 +902,8 @@ int bch2_fs_recovery(struct bch_fs *c)
bch2_journal_keys_put_initial(c); bch2_journal_keys_put_initial(c);
bch2_find_btree_nodes_exit(&c->found_btree_nodes); bch2_find_btree_nodes_exit(&c->found_btree_nodes);
} }
kfree(clean); if (!IS_ERR(clean))
kfree(clean);
if (!ret && if (!ret &&
test_bit(BCH_FS_need_delete_dead_snapshots, &c->flags) && test_bit(BCH_FS_need_delete_dead_snapshots, &c->flags) &&
......
Markdown is supported
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