mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
Revert "jffs2: Fix possible null-pointer dereferences in jffs2_add_frag_to_fragtree()"
This reverts commitf2538f9993
. The patch stopped JFFS2 from being able to mount an existing filesystem with the following errors: jffs2: error: (77) jffs2_build_inode_fragtree: Add node to tree failed -22 jffs2: error: (77) jffs2_do_read_inode_internal: Failed to build final fragtree for inode #5377: error -22 Fixes:f2538f9993
("jffs2: Fix possible null-pointer dereferences...") Cc: stable@vger.kernel.org Suggested-by: Hou Tao <houtao1@huawei.com> Signed-off-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
f9c34bb529
commit
6e78c01fde
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ static int jffs2_add_frag_to_fragtree(struct jffs2_sb_info *c, struct rb_root *r
|
||||||
lastend = this->ofs + this->size;
|
lastend = this->ofs + this->size;
|
||||||
} else {
|
} else {
|
||||||
dbg_fragtree2("lookup gave no frag\n");
|
dbg_fragtree2("lookup gave no frag\n");
|
||||||
return -EINVAL;
|
lastend = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* See if we ran off the end of the fragtree */
|
/* See if we ran off the end of the fragtree */
|
||||||
|
|
Loading…
Add table
Reference in a new issue