projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix yaffs_endian.h for Linux
[yaffs2.git]
/
yaffs_tagsmarshall.c
diff --git
a/yaffs_tagsmarshall.c
b/yaffs_tagsmarshall.c
index c2e2369bb24731e58fce8d1ccfa1300232854932..4a120d86825a4405969d73b251655bf527581c8a 100644
(file)
--- a/
yaffs_tagsmarshall.c
+++ b/
yaffs_tagsmarshall.c
@@
-101,6
+101,9
@@
static int yaffs_tags_marshall_read(struct yaffs_dev *dev,
BUG();
BUG();
+ if (retval == YAFFS_FAIL)
+ return YAFFS_FAIL;
+
if (dev->param.inband_tags) {
if (tags) {
struct yaffs_packed_tags2_tags_only *pt2tp;
if (dev->param.inband_tags) {
if (tags) {
struct yaffs_packed_tags2_tags_only *pt2tp;
@@
-122,7
+125,7
@@
static int yaffs_tags_marshall_read(struct yaffs_dev *dev,
dev->n_ecc_unfixed++;
}
dev->n_ecc_unfixed++;
}
- if (tags && ecc_result ==
-
YAFFS_ECC_RESULT_FIXED) {
+ if (tags && ecc_result == YAFFS_ECC_RESULT_FIXED) {
if (tags->ecc_result <= YAFFS_ECC_RESULT_NO_ERROR)
tags->ecc_result = YAFFS_ECC_RESULT_FIXED;
dev->n_ecc_fixed++;
if (tags->ecc_result <= YAFFS_ECC_RESULT_NO_ERROR)
tags->ecc_result = YAFFS_ECC_RESULT_FIXED;
dev->n_ecc_fixed++;