bcachefs: don't free error pointers

Reported-by: syzbot+3333603f569fc2ef258c@syzkaller.appspotmail.com
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2024-05-03 10:55:17 -04:00
parent 72e71bf029
commit 7ffec9ccdc

View File

@ -902,6 +902,7 @@ out:
bch2_journal_keys_put_initial(c);
bch2_find_btree_nodes_exit(&c->found_btree_nodes);
}
if (!IS_ERR(clean))
kfree(clean);
if (!ret &&