From: Kent Overstreet Date: Tue, 30 Jul 2024 22:21:32 +0000 (-0400) Subject: bcachefs: Fix double free of ca->buckets_nouse X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=e61dd678601eac53d501dda1eb1bcffec7b11bd6;p=users%2Fjedix%2Flinux-maple.git bcachefs: Fix double free of ca->buckets_nouse Reported-by: Dan Carpenter Fixes: ffcbec6076 ("bcachefs: Kill opts.buckets_nouse") Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 0455a1001fec2..e7fa2de350145 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -1193,7 +1193,6 @@ static void bch2_dev_free(struct bch_dev *ca) if (ca->kobj.state_in_sysfs) kobject_del(&ca->kobj); - kfree(ca->buckets_nouse); bch2_free_super(&ca->disk_sb); bch2_dev_allocator_background_exit(ca); bch2_dev_journal_exit(ca);