aboutsummaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorMarcos Paulo de Souza <[email protected]>2021-08-02 09:34:00 -0300
committerDavid Sterba <[email protected]>2021-08-23 13:19:15 +0200
commit3736127a3aa805602b7a2ad60ec9cfce68065fbb (patch)
treec16788f334528d3ae9ad73ab37d6f5783a5043a9 /lib/test_overflow.c
parent8be2ba2e0e11ade6ab96d8887dbb12abbd3540f4 (diff)
btrfs: tree-log: check btrfs_lookup_data_extent return value
Function btrfs_lookup_data_extent calls btrfs_search_slot to verify if the EXTENT_ITEM exists in the extent tree. btrfs_search_slot can return values bellow zero if an error happened. Function replay_one_extent currently checks if the search found something (0 returned) and increments the reference, and if not, it seems to evaluate as 'not found'. Fix the condition by checking if the value was bellow zero and return early. Reviewed-by: Filipe Manana <[email protected]> Signed-off-by: Marcos Paulo de Souza <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions