Skip to content
Commit 3fddb6c9 authored by David Woodhouse's avatar David Woodhouse
Browse files

[JFFS2] Don't advance c->wbuf_ofs to next eraseblock after wbuf flush



After flushing the last page of an eraseblock, don't leave the
wbuf 'offset' field pointing at the start of the next physical
eraseblock. This was causing a BUG() on NOR-ECC (Sibley) flash, where
we start writing a little further in, after the cleanmarker.

Debugged by Alexander Belyakov <abelyako@googlemail.com>

Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 693ef66d
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