소스 검색

Btrfs: Fix variable init during csum creation

Signed-off-by: Chris Mason <chris.mason@oracle.com>
Chris Mason 17 년 전
부모
커밋
639cb58675
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      fs/btrfs/file-item.c

+ 1 - 0
fs/btrfs/file-item.c

@@ -325,6 +325,7 @@ again:
 	item = btrfs_lookup_csum(trans, root, path, objectid, offset, 1);
 	item = btrfs_lookup_csum(trans, root, path, objectid, offset, 1);
 	if (!IS_ERR(item)) {
 	if (!IS_ERR(item)) {
 		leaf = path->nodes[0];
 		leaf = path->nodes[0];
+		ret = 0;
 		goto found;
 		goto found;
 	}
 	}
 	ret = PTR_ERR(item);
 	ret = PTR_ERR(item);