diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-01-21 20:48:35 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-02-03 07:56:19 +0100 |
| commit | a8bec25e014eab671ec8a25b03d391cad3e55230 (patch) | |
| tree | 90aa9a440e5c1bd17536dba6894d54b2e245c2f6 /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 79d51b5c7a2c64f3420ff632df67a76bf01a46ed (diff) | |
btrfs: deal with missing root in sample_block_group_extent_item()
In case the root does not exists, which is unexpected, btrfs_extent_root()
returns NULL, but we ignore that and so if it happens we can trigger a
NULL pointer dereference later. So verify if we found the root and log an
error message in case it's missing.
Reviewed-by: Boris Burkov <boris@bur.io>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
