mirror of
https://github.com/kdave/btrfs-progs
synced 2025-02-17 10:16:53 +00:00
btrfs-progs: check, missing parens around compound block in find_normal_file_extent
Resolves-coverity-id: 1260248 Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
parent
8499af3484
commit
01a9f4308b
@ -2160,10 +2160,11 @@ static int find_normal_file_extent(struct btrfs_root *root, u64 ino)
|
||||
fi = btrfs_item_ptr(path->nodes[0], path->slots[0],
|
||||
struct btrfs_file_extent_item);
|
||||
type = btrfs_file_extent_type(path->nodes[0], fi);
|
||||
if (type != BTRFS_FILE_EXTENT_INLINE)
|
||||
if (type != BTRFS_FILE_EXTENT_INLINE) {
|
||||
ret = 1;
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
out:
|
||||
btrfs_free_path(path);
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user