diff options
| author | Filipe Manana <fdmanana@suse.com> | 2026-02-08 19:43:01 +0000 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-03-17 11:29:32 +0100 |
| commit | 2b4cb4e58f3463d142fcece5a19e0405fb82c794 (patch) | |
| tree | 60273036524d0bf93161e837077481fb53ebf0a3 /Documentation/console/git@git.tavy.me:linux.git | |
| parent | 50242828700f06edfa8d563f9e0acc23a59424ee (diff) | |
btrfs: check for NULL root after calls to btrfs_csum_root()
btrfs_csum_root() can return a NULL pointer in case the root we are
looking for is not in the rb tree that tracks roots. So add checks to
every caller that is missing such check to log a message and return
an error.
Reported-by: Chris Mason <clm@meta.com>
Link: https://lore.kernel.org/linux-btrfs/20260208161657.3972997-1-clm@meta.com/
Reviewed-by: Boris Burkov <boris@bur.io>
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 'Documentation/console/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
