Commit 98f413a7 authored by David Woodhouse's avatar David Woodhouse

JFFS2: Initialise bad_count for each eraseblock correctly.

Patch from Estelle Hammache <estelle.hammache@st.com>
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent d5693464
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* For licensing information, see the file 'LICENCE' in this directory. * For licensing information, see the file 'LICENCE' in this directory.
* *
* $Id: build.c,v 1.65 2004/11/20 16:19:38 dwmw2 Exp $ * $Id: build.c,v 1.66 2004/11/20 19:18:07 dwmw2 Exp $
* *
*/ */
...@@ -325,6 +325,7 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c) ...@@ -325,6 +325,7 @@ int jffs2_do_mount_fs(struct jffs2_sb_info *c)
c->blocks[i].used_size = 0; c->blocks[i].used_size = 0;
c->blocks[i].first_node = NULL; c->blocks[i].first_node = NULL;
c->blocks[i].last_node = NULL; c->blocks[i].last_node = NULL;
c->blocks[i].bad_count = 0;
} }
init_MUTEX(&c->alloc_sem); init_MUTEX(&c->alloc_sem);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment