projects
/
yaffs2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
yaffs_guts.c : Fix missing temporary buffers when doing yaffs format on inband tags.
[yaffs2.git]
/
yaffs_guts.c
diff --git
a/yaffs_guts.c
b/yaffs_guts.c
index ba7fc845812a62e73abc6348a6e7661e1180316b..a2b4cdf696114a2d89ab639c1ab0f35ee126221b 100644
(file)
--- a/
yaffs_guts.c
+++ b/
yaffs_guts.c
@@
-4541,11
+4541,16
@@
int yaffs_guts_ll_init(struct yaffs_dev *dev)
return YAFFS_FAIL;
}
return YAFFS_FAIL;
}
+ if (!yaffs_init_tmp_buffers(dev))
+ return YAFFS_FAIL;
+
if (yaffs_init_nand(dev) != YAFFS_OK) {
yaffs_trace(YAFFS_TRACE_ALWAYS, "InitialiseNAND failed");
return YAFFS_FAIL;
}
if (yaffs_init_nand(dev) != YAFFS_OK) {
yaffs_trace(YAFFS_TRACE_ALWAYS, "InitialiseNAND failed");
return YAFFS_FAIL;
}
+ dev->ll_init = 1;
+
return YAFFS_OK;
}
return YAFFS_OK;
}
@@
-4692,10
+4697,7
@@
int yaffs_guts_initialise(struct yaffs_dev *dev)
yaffs_endian_config(dev);
yaffs_endian_config(dev);
- /* Initialise temporary buffers and caches. */
- if (!yaffs_init_tmp_buffers(dev))
- init_failed = 1;
-
+ /* Initialise temporary caches. */
dev->gc_cleanup_list = NULL;
if (!init_failed)
dev->gc_cleanup_list = NULL;
if (!init_failed)