mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-11 03:31:17 +00:00
btrfs-progs: check: improved error handling in calc_extent_flag
All callers handle errors. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
28fdd0d2ae
commit
40ca1d513d
@ -6047,7 +6047,9 @@ static int calc_extent_flag(struct btrfs_root *root,
|
||||
|
||||
cache = lookup_cache_extent(extent_cache, buf->start, 1);
|
||||
/* we have added this extent before */
|
||||
BUG_ON(!cache);
|
||||
if (!cache)
|
||||
return -ENOENT;
|
||||
|
||||
rec = container_of(cache, struct extent_record, cache);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user