提交 1cb08e97 编写于 作者: P Phillip Lougher

squashfs: fix warn_on when root inode is corrupted

Fix warn_on triggered by mounting a fsfuzzer corrupted file system, where
the root inode has been corrupted.
Signed-off-by: NPhillip Lougher <phillip@lougher.demon.co.uk>
Reported-by: NSteve Grubb <sgrubb@redhat.com>
上级 792590c7
......@@ -275,7 +275,8 @@ static int squashfs_fill_super(struct super_block *sb, void *data, int silent)
err = squashfs_read_inode(root, root_inode);
if (err) {
iget_failed(root);
make_bad_inode(root);
iput(root);
goto failed_mount;
}
insert_inode_hash(root);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册