diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 10280a29a34b..5397884b6c02 100644 --- a/drivers/char/virtio_console.c +++ b/drivers/char/virtio_console.c @@ -1393,6 +1393,13 @@ static void handle_control_message(struct ports_device *portdev, send_sigio_to_port(port); break; case VIRTIO_CONSOLE_PORT_NAME: + /* + * If we woke up after hibernation, we can get this + * again. Skip it in that case. + */ + if (port->name) + break; + /* * Skip the size of the header and the cpkt to get the size * of the name that was sent