Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

parent d99393ef
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
	}