mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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:
parent
72e71bf029
commit
7ffec9ccdc
1 changed files with 2 additions and 1 deletions
|
@ -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 &&
|
||||
|
|
Loading…
Add table
Reference in a new issue