diff --git a/fs/squashfs/inode.c b/fs/squashfs/inode.c index f31649080..24463145b 100755 --- a/fs/squashfs/inode.c +++ b/fs/squashfs/inode.c @@ -276,13 +276,8 @@ int squashfs_read_inode(struct inode *inode, long long ino) if (err < 0) goto failed_read; - inode->i_size = le32_to_cpu(sqsh_ino->symlink_size); - if (inode->i_size > PAGE_SIZE) { - ERROR("Corrupted symlink\n"); - return -EINVAL; - } - set_nlink(inode, le32_to_cpu(sqsh_ino->nlink)); + inode->i_size = le32_to_cpu(sqsh_ino->symlink_size); inode->i_op = &squashfs_symlink_inode_ops; inode_nohighmem(inode); inode->i_data.a_ops = &squashfs_symlink_aops;