Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a1b563d6 authored by David Woodhouse's avatar David Woodhouse
Browse files

[JFFS2] Initialise ref->next_in_ino when marking dirty space in wbuf flush

parent 3b79673c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -507,6 +507,7 @@ static int __jffs2_flush_wbuf(struct jffs2_sb_info *c, int pad)
			return -ENOMEM;
		ref->flash_offset = c->wbuf_ofs + c->wbuf_len;
		ref->flash_offset |= REF_OBSOLETE;
		ref->next_in_ino = NULL;

		spin_lock(&c->erase_completion_lock);