mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
bcachefs: Fix double free of ca->buckets_nouse
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Fixes: ffcbec6076
("bcachefs: Kill opts.buckets_nouse")
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
8400291e28
commit
e61dd67860
@ -1193,7 +1193,6 @@ static void bch2_dev_free(struct bch_dev *ca)
|
|||||||
if (ca->kobj.state_in_sysfs)
|
if (ca->kobj.state_in_sysfs)
|
||||||
kobject_del(&ca->kobj);
|
kobject_del(&ca->kobj);
|
||||||
|
|
||||||
kfree(ca->buckets_nouse);
|
|
||||||
bch2_free_super(&ca->disk_sb);
|
bch2_free_super(&ca->disk_sb);
|
||||||
bch2_dev_allocator_background_exit(ca);
|
bch2_dev_allocator_background_exit(ca);
|
||||||
bch2_dev_journal_exit(ca);
|
bch2_dev_journal_exit(ca);
|
||||||
|
Loading…
Reference in New Issue
Block a user