Skip to content
Commit b56baf5b authored by Yan's avatar Yan Committed by Chris Mason
Browse files

Minor fix for btrfs_csum_file_block.



Execution should goto label 'insert' when 'btrfs_next_leaf' return a
non-zero value, otherwise the parameter 'slot' for
'btrfs_item_key_to_cpu' may be out of bounds. The original codes jump
to  label 'insert' only when 'btrfs_next_leaf' return a negative
value.

Signed-off-by: default avatarChris Mason <chris.mason@oracle.com>
parent 689f9346
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment