diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c index 3550aec2f655ccb1a9a8a04dae5a9bb2df4fdc52..07ceeb8d8f539024447a224c76a6a87cc891e6bb 100644 --- a/fs/squashfs/super.c +++ b/fs/squashfs/super.c @@ -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);