summaryrefslogtreecommitdiff
path: root/Documentation/console/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorFilipe Manana <fdmanana@suse.com>2026-02-08 19:24:16 +0000
committerDavid Sterba <dsterba@suse.com>2026-03-17 11:22:49 +0100
commit50242828700f06edfa8d563f9e0acc23a59424ee (patch)
tree8d3829f2fdb362893382171e0cebc240e6dfed9f /Documentation/console/git@git.tavy.me:linux.git
parentfc1cd1f18c34f91e78362f9629ab9fd43b9dcab9 (diff)
btrfs: check for NULL root after calls to btrfs_extent_root()
btrfs_extent_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. The same applies to callers of btrfs_block_group_root(), since it calls btrfs_extent_root(). 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