commit | b56baf5bedccd3258643b09289f17ceab3ddea52 | [log] [tgz] |
---|---|---|
author | Yan <yanzheng@21cn.com> | Mon Oct 29 12:01:05 2007 -0400 |
committer | Chris Mason <chris.mason@oracle.com> | Thu Sep 25 11:03:57 2008 -0400 |
tree | eb493a33d091f32deed028c4e66de0e9342c7628 | |
parent | 689f9346612d96ab93890160cf2fe0df5217ab73 [diff] |
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>