• Yan's avatar
    Minor fix for btrfs_csum_file_block. · b56baf5b
    Yan authored
    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>
    b56baf5b
file-item.c 8.14 KB