Skip to content
Snippets Groups Projects
Commit 298add72 authored by Amit Shah's avatar Amit Shah Committed by Rusty Russell
Browse files

virtio: console: show error message if hvc_alloc fails for console ports


Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent d99393ef
No related branches found
No related tags found
No related merge requests found
......@@ -753,6 +753,8 @@ int init_port_console(struct port *port)
port->cons.hvc = hvc_alloc(port->cons.vtermno, 0, &hv_ops, PAGE_SIZE);
if (IS_ERR(port->cons.hvc)) {
ret = PTR_ERR(port->cons.hvc);
dev_err(port->dev,
"error %d allocating hvc for port\n", ret);
port->cons.hvc = NULL;
return ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment