Skip to content

Commit e61dd67

Browse files
author
Kent Overstreet
committed
bcachefs: Fix double free of ca->buckets_nouse
Reported-by: Dan Carpenter <[email protected]> Fixes: ffcbec6 ("bcachefs: Kill opts.buckets_nouse") Signed-off-by: Kent Overstreet <[email protected]>
1 parent 8400291 commit e61dd67

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/bcachefs/super.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1193,7 +1193,6 @@ static void bch2_dev_free(struct bch_dev *ca)
11931193
if (ca->kobj.state_in_sysfs)
11941194
kobject_del(&ca->kobj);
11951195

1196-
kfree(ca->buckets_nouse);
11971196
bch2_free_super(&ca->disk_sb);
11981197
bch2_dev_allocator_background_exit(ca);
11991198
bch2_dev_journal_exit(ca);

0 commit comments

Comments
 (0)