diff options
| author | Mark Harmstone <mark@harmstone.com> | 2026-02-19 14:30:59 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-02-26 15:03:29 +0100 |
| commit | f8db8009ea65297dba7786668d4561f6dbd99678 (patch) | |
| tree | b19f2e9d4d488d2d872d54d6c11620a3598c3e19 /scripts/lib | |
| parent | 7885ca40c305c64ffa444e1fc55edd6acb7a6e5b (diff) | |
btrfs: check block group lookup in remove_range_from_remap_tree()
Add a check in remove_range_from_remap_tree() after we call
btrfs_lookup_block_group(), to check if it is NULL. This shouldn't
happen, but if it does we at least get an error rather than a segfault.
Reported-by: Chris Mason <clm@fb.com>
Link: https://lore.kernel.org/linux-btrfs/20260125125129.2245240-1-clm@meta.com/
Fixes: 979e1dc3d69e ("btrfs: handle deletions from remapped block group")
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Mark Harmstone <mark@harmstone.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions
