|
@@ -783,6 +783,7 @@ int vc_allocate(unsigned int currcons) /* return 0 on success */
|
|
|
if (!vc)
|
|
|
return -ENOMEM;
|
|
|
vc_cons[currcons].d = vc;
|
|
|
+ tty_port_init(&vc->port);
|
|
|
INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK);
|
|
|
visual_init(vc, currcons, 1);
|
|
|
if (!*vc->vc_uni_pagedir_loc)
|
|
@@ -2921,6 +2922,7 @@ static int __init con_init(void)
|
|
|
for (currcons = 0; currcons < MIN_NR_CONSOLES; currcons++) {
|
|
|
vc_cons[currcons].d = vc = kzalloc(sizeof(struct vc_data), GFP_NOWAIT);
|
|
|
INIT_WORK(&vc_cons[currcons].SAK_work, vc_SAK);
|
|
|
+ tty_port_init(&vc->port);
|
|
|
visual_init(vc, currcons, 1);
|
|
|
vc->vc_screenbuf = kzalloc(vc->vc_screenbuf_size, GFP_NOWAIT);
|
|
|
vc_init(vc, vc->vc_rows, vc->vc_cols,
|