Minor fix for btrfs_csum_file_block.
authorYan <yanzheng@21cn.com>
Mon, 29 Oct 2007 16:01:05 +0000 (12:01 -0400)
committerChris Mason <chris.mason@oracle.com>
Thu, 25 Sep 2008 15:03:57 +0000 (11:03 -0400)
commitb56baf5bedccd3258643b09289f17ceab3ddea52
treeeb493a33d091f32deed028c4e66de0e9342c7628
parent689f9346612d96ab93890160cf2fe0df5217ab73
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: Chris Mason <chris.mason@oracle.com>
fs/btrfs/file-item.c