Message ID | ED3E0BCACD909541BA94A34C4A164D4C4FC8FD57@post.tritech.se |
---|---|
State | New, archived |
Headers | show |
diff -purN a/fs/ubifs/orphan.c b/fs/ubifs/orphan.c --- a/fs/ubifs/orphan.c 2013-06-13 12:19:58.490931170 +0200 +++ b/fs/ubifs/orphan.c 2013-06-13 12:17:13.014931462 +0200 @@ -300,6 +300,9 @@ static int write_orph_node(struct ubifs_ for (i = 0; i < cnt; i++) { orphan = cnext; orph->inos[i] = cpu_to_le64(orphan->inum); + if (orph->inos[i] < UBIFS_FIRST_INO) { + printk(KERN_ERR "ERROR: Wrong ino in orphan list[%lu]: %lu\n", (unsigned long)i, (unsigned long)orph->inos[i]); + } cnext = orphan->cnext; orphan->cnext = NULL; }