Skip to content
Commit e8484348 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

bcachefs: Fix a kasan splat in bch2_dev_add()



This fixes a use after free - mi is dangling after the resize call.

Additionally, resizing the device's member info section was useless - we
were attempting to preallocate the space required before adding it to
the filesystem superblock, but there's other sections that we should
have been preallocating as well for that to work.

Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 5c1ab40e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment