From: Phillip Lougher Date: Fri, 16 Apr 2010 00:01:36 +0000 (+0100) Subject: squashfs: fix warn_on when root inode is corrupted X-Git-Tag: submit/tizen_common/20140905.094502~12554^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1cb08e97389bb603e1b999312d9686c8faf0187a;p=sdk%2Femulator%2Femulator-kernel.git 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: Phillip Lougher Reported-by: Steve Grubb --- diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index 3550aec2f655..07ceeb8d8f53 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c @@ -275,7 +275,8 @@ allocate_root: 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);